Content Edit Controller Extension Hooks¶
delete_entries_end¶
Executed after the entry deletion routine complete, allowing additional processing.
$edata = $this->extensions->call('delete_entries_end');
if ($this->extensions->end_script === TRUE) return;
| returns: | void |
|---|
Added in v1.4.0
delete_entries_loop¶
Executed in the loop that deletes each entry, after deletion, prior to stat recounts.
$edata = $this->extensions->call('delete_entries_loop', $val, $channel_id);
if ($this->extensions->end_script === TRUE) return;
$val¶
entry_id of the entry being deleted
delete_entries_start¶
This hook is executed when an entry is deleted via the control panel, prior to the entry’s deletion. It can be used to perform additional validation / actions before the entry is deleted, or to take over the deletion process.
$edata = $this->extensions->call('delete_entries_start');
if ($this->extensions->end_script === TRUE) return;
| returns: | void |
|---|
Added in v1.4.0
edit_entries_additional_where¶
This hook is executed when the edit page is loaded, and on every search that is performed on the edit page. It can be used to add additional where, where_in, and where_not_in options to the query.
$_hook_wheres = $this->extensions->call('edit_entries_additional_where', $filter_data);
if ($this->extensions->end_script === TRUE) return;
$filter_data¶
Current search form information.
| returns: | array of additional where data: array(
'entry_id !=' => 5, // where
'entry_id' => array(1, 2, 3), // where_in
'channel_id !=' => array(3, 4) // where_not_in
)
|
|---|
Added in v2.4.0
update_multi_entries_loop¶
This hook is executed when entries are updated using the multi-entry editor. It runs once for each entry being updated, after the entry is updated, allowing additional actions to be performed for each entry.
$edata = $this->extensions->call('update_multi_entries_loop', $id, $data);
if ($this->extensions->end_script === TRUE) return;
$id¶
entry_id of the entry being updated
update_multi_entries_start¶
This hook is executed when entries are updated via the multi-entry editor. It runs after authorization is checked, but prior to any processing of submitted form data, allowing additional validation / actions before the entries are updated, or to take over the update process.
$edata = $this->extensions->call('update_multi_entries_start');
if ($this->extensions->end_script === TRUE) return;
| returns: | void |
|---|
Added in v2.0

User Contributed Notes
You must have an ExpressionEngine license and have attained a forum rank of "Lab Assistant" (100 posts) to contribute notes to the User Guide