ExpressionEngine

2.5.0 User Guide

Content Publish Controller Extension Hooks

entry_submission_absolute_end

Additional processing after entry submission, after all processing, prior to redirect.

$this->extensions->call('entry_submission_absolute_end', $this->entry_id, $this->meta, $this->data);

$this->entry_id

entry_id of submitted entry

$this->meta

Array of entry’s metadata (channel_id, entry_date, i.e. fields for exp_channel_titles.)

$this->data

Array of entry’s field data

returns:void

Added in v2.0

entry_submission_redirect

Set the URL that the user will be redirected to after a successful entry submission

$loc = $this->extensions->call('entry_submission_redirect', $this->entry_id, $this->meta, $this->data, $cp_call, $orig_loc);

$this->entry_id

entry_id of the submitted entry

$this->meta

Array of entry’s metadata (channel_id, entry_date, i.e. fields for exp_channel_titles.)

$this->data

Array of entry’s field data

$cp_call

(Boolean) whether or not the entry is submitted from the control panel

$orig_loc

Original Location ExpressionEngine would be redirecting to

returns:String

Added in v2.0

foreign_character_conversion_array

Allows you to set the foreign character conversion array used to transliterate non-English characters for use in URLs.

Note: If you only need to use one non-dynamically controlled array, you can simply modify system/expressionengine/config/foreign_chars.php

$foreign_characters = $this->extensions->call('foreign_character_conversion_array');
returns:Array

Added in v1.6.0

publish_form_channel_preferences

Allows modification of channel preferences used on the publish form page.

$row = $this->extensions->call('publish_form_channel_preferences', $query->row_array());

$query->row_array()

Array of preferences for the selected channel

returns:Array

Added in v1.4.1

publish_form_entry_data

Allows modification of entry data for the publish form when editing an existing entry.

$resrow = $this->extensions->call('publish_form_entry_data', $result->row_array());

$result->row_array()

Array of entry data

returns:Array

Added in v1.4.1

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