ExpressionEngine® User Guide

Legacy Documentation

You are using the documentation for version 4.3.8. Go here for the latest version.

Filemanager Library Extension Hooks

file_after_save

file_after_save($file_id, $data)

Do additional processing after a file is saved.

How it’s called:

$this->extensions->call('file_after_save', $file_id, $data);
if ($this->extensions->end_script === TRUE) return;
Parameters:
  • $file_id (int) – File ID in the exp_files table
  • $data (array) – Associative array containing data about file
Return type:

Void

New in version 2.5.3.

files_after_delete

files_after_delete($deleted)

Do additional processing after a file is removed.

How it’s called:

$edata = $this->extensions->call('files_after_delete', $deleted);
if ($this->extensions->end_script === TRUE) return;
Parameters:
  • $deleted (array) – Array of database row objects for the files that were deleted
Return type:

Void

New in version 2.1.5.