Skip to content
etheon edited this page Sep 12, 2010 · 1 revision

Trigger List

Triggers – more specifically, in our case, the callbacks triggers – are the bread and butter of an extension. As such, a comprehensive reference of all possible callbacks is a boon for any developer.

Triggers below are listed in alphabetical order, along with the different locations where they are called, as well as their parameters and possible expected return values.

When variables are used in the callbacks, this means that textual substitution is used; please refer to the callback’s individual description.

Individual trigger pages should contain the expected usage of the trigger and some examples.

Callback Definition Used in
Trigger:Controller Route Method [{$controller}¦route]_{$method}(Controller $controller) includes/class/Route.php:94
Trigger:Route Action Feed {$route->action}_feed($context) includes/controllers/Main.php:661
Trigger:Add Group add_group(Group $group) includes/model/Group.php:113
Trigger:Add Page add_page(Page $page) includes/model/Page.php:106
Trigger:Add Post add_post(Post $post, $options) includes/model/Post.php:257
Trigger:Add User add_user(User $user) includes/model/User.php:92
Trigger:Admin Head admin_head() admin/layout/layout.twig:11
Trigger:Admin Javascript admin_javascript() includes/admin.js.php:737
Trigger:After Page Fields after_page_fields() admin/layout/partials/page_fields.twig:10
Trigger:After Post Fields after_post_fields(feather) admin/layout/partials/post_fields.twig:32, admin/layout/pages/bookmarklet.twig:211
Trigger:Ajax ajax() includes/ajax.php:204
Trigger:Ajax Post Edit Form Javascript ajax_post_edit_form_javascript() includes/javascript.php:44
Trigger:Authenticate authenticate() includes/controller/Main.php:504
Trigger:Before Bookmarklet Fields before_bookmarklet_fields(feather) admin/layout/pages/bookmarklet.twig:184
Trigger:Before Page Fields before_page_fields() admin/layout/partials/page_fields.twig:1
Trigger:Before Post Fields before_post_fields(feather) admin/layout/partials/post_fields.twig:1
Trigger:Can Not View Site can_not_view_site() index.php:17, includes/ajax.php:14, admin/index.php:15
Trigger:Change Setting change_setting($setting, $value, $overwrite) includes/class/Config.php:62
Trigger:Delete User Form delete_user_form() admin/layout/pages/delete_user.twig:76
Trigger:Edit Page Options edit_page_options(page) admin/layout/partials/page_fields.twig:45
Trigger:Edit User Fields edit_user_fields(user) admin/layout/pages/edit_user.twig:45
Trigger:End end(Route $route) index.php:70, admin/index.php:25
Trigger:Export Choose export_choose() admin/layout/pages/export.twig:54
Trigger:Feed Item feed_item(Post $post) includes/feed.php:53
Trigger:Help Item array($title, $body) help_{$_GET['id']}() includes/controllers/Admin.php:2040
Trigger:Import Choose import_choose() admin/layout/pages/import.twig:37, admin/layout/pages/import.twig:176
Trigger:Import Chyrp Group import_chyrp_group(Group $group) includes/controller/Admin.php:1086
Trigger:Import Chyrp Page import_chyrp_page($entry, $page) includes/controller/Admin.php:1162
Trigger:Import Chyrp Post import_chyrp_post($entry, $post) includes/controller/Admin.php:1140
Trigger:Import Chyrp User import_chyrp_user($user) includes/controller/Admin.php:1110
Trigger:Import Movabletype Page import_movabletype_page($page, $new_page, $link) includes/controller/Admin.php:1541
Trigger:Import Movabletype Post import_movabletype_post($post, $new_post, $link) includes/controller/Admin.php:1538
Trigger:Import Textpattern Post import_textpattern_post($post, $new_post) includes/controller/Admin.php:1463
Trigger:Import Tumble import_tumble($post, $new_post) includes/controller/Admin.php:1394
Trigger:Import Wordpress Page import_wordpress_page($item, $page) includes/controller/Admin.php:1264
Trigger:Import Wordpress Post import_wordpress_post($item, $post) includes/controller/Admin.php:1252
Trigger:Javascript javascript() includes/javascript.php:142
Trigger:Manage Pages Column manage_pages_column(page) admin/layout/pages/manage_pages.twig:40
Trigger:Manage Pages Column Header manage_pages_column_header() admin/layout/pages/manage_pages.twig:29
Trigger:Manage Posts Column manage_posts_column(post) admin/layout/pages/manage_posts.twig:51
Trigger:Manage Posts Column Header manage_posts_column_header() admin/layout/pages/manage_posts.twig:40
Trigger:Manage Users Column manage_users_column(user) admin/layout/pages/manage_users.twig:51
Trigger:Manage Users Column Header manage_users_column_header() admin/layout/pages/manage_users.twig:34
Trigger:New Page Options new_page_options() admin/layout/partials/page_fields.twig:43
Trigger:New User Fields new_user_fields() admin/layout/pages/new_user.twig:45
Trigger:Not Found not_found() includes/helpers.php:1138, includes/ajax.php:27, includes/ajax.php:52, includes/ajax.php:73
Trigger:Pingback pingback($post, $linked_to, $linked_from, $title, $excerpt) includes/xmlrpc.php:118
Trigger:Post View Url Settings post_view_url_settings() admin/layout/pages/route_settings.twig:40
Trigger:Route Init route_init(Route $route) includes/class/Route.php:76
Trigger:Runtime runtime() includes/common.php:288
Trigger:Trackback Receive trackback_receive($url, $title, $excerpt, $blog_name) includes/trackback.php:26
Trigger:Update Group update_group(Group $updated, Group $old) includes/model/Group.php:159
Trigger:Update Page update_page(Page $updated, Page $old) includes/model/Page.php:168
Trigger:Update Post update_post(Post $updated, Post $old) includes/model/Post.php:333
Trigger:Update User update_user(User $updated, User $old) includes/model/User.php:142
Clone this wiki locally