Plugin Actions
Introduction
Actions are events (or hooks) to which callback functions can be attached.
In the example below, the event is report_add, and the email_subscribers callback is attached to this particular event. Whenever this event is encountered, all the associated plugins that are attached to this event will be executed.
Example:
Reference
Action |
Parameter |
Description |
File |
---|---|---|---|
report_delete |
$incident_id |
Report deleted |
application/controllers/admin/reports.php |
report_meta |
$incident_id |
Add items to the Report Meta |
application/themes/default/views/reports_view.php |
report_form_admin |
$id |
Runs just after the report description |
application/views/admin/reports_edit.php |
main_sidebar |
|
Add Items to the Entry Page Sidebar |
application/themes/default/views/main.php |
map_main_filters |
|
Add items to the main filters |
application/themes/default/views/main.php |
report_pre_form_admin |
$id |
Runs right before report form is rendered |
application/views/admin/reports_edit.php |
report_form_admin_after_time |
$id |
Runs just after the report time |
application/views/admin/reports_edit.php |
report_form_admin_location |
$id |
Runs just after the report location |
application/views/admin/reports_edit.php |
report_form_admin_after_video_link |
$id |
Runs just after the report video link |
application/views/admin/reports_edit.php |
report_pre_form_admin |
$id |
Runs right before report form is rendered |
application/views/admin/reports_edit.php |
config_routes |
$config |
|
application/config/routes.php |
config_upload |
$config |
|
application/config/upload.php |
page_submit |
$post |
|
application/controller/admin/manage.php |
page_edit |
$page |
|
application/controller/admin/manage.php |
report_approve |
$update |
|
application/controllers/admin/reports.php |
report_unapprove |
$update |
|
application/controllers/admin/reports.php |
|
|
|
|
location_from |
$message_from |
|
application/controllers/admin/reports.php |
report_submit_admin |
$post |
|
application/controllers/admin/reports.php |
report_edit |
$incident |
|
application/controllers/admin/reports.php |
site_settings_modified |
|
|
application/controllers/admin/settings.php |
map_settings_modified |
|
|
application/controllers/admin/settings.php |
users_add_admin |
$post |
|
application/controllers/admin/users.php |
user_edit |
$user |
|
application/controllers/admin/users.php |
user_login |
$user |
|
application/controllers/login.php |
report_add |
$incident |
|
application/controllers/reports.php |
report_submit |
$post |
|
application/controllers/reports.php |
comment_add |
$comment |
|
application/controllers/reports.php |
message_email_add |
|
application/controllers/scheduler/s_email.php |
|
message_twitter_add |
$message |
|
application/controllers/scheduler/s_twitter.php |
nav_admin_main_top |
$tabs |
|
application/helper/admin.php |
nav_admin_reports |
$this_sub_page |
|
application/helper/admin.php |
nav_admin_messages |
$service_id |
|
application/helper/admin.php |
nav_admin_settings |
$this_sub_page |
|
application/helper/admin.php |
sub_nav_admin_settings_sms |
$this_sub_page |
|
application/helpers/admin.php |
nav_admin_manage |
$this_sub_page |
|
application/helpers/admin.php |
nav_admin_users |
$this_sub_page |
|
application/helpers/admin.php |
nav_members_reports |
$this_sub_page |
|
application/helpers/member.php |
nav_members_private |
$this_sub_page |
|
application/helpers/member.php |
nav_members_alerts |
$this_sub_page |
|
application/helpers/member.php |
nav_main_top |
$this_page |
|
application/helpers/nav.php |
message_sms_add |
$sms |
SMS Recieved |
application/helpers/sms.php |
post_nav_submit |
|
Add items after the submit button |
application/libraries/Themes.php |
checkin_recorded |
$checkin |
Hook on successful checkin |
|
report_submit_api |
$post |
|
application/libraries/api/MY_Report_Api_Object.php |
report_edit_api |
$incident |
|
application/libraries/api/MY_Report_Api_Object.php |
user_submit_admin |
$post |
Additional validation checks |
application/models/user.php |
admin_checkins_custom_layout |
|
|
application/views/admin/checkins.php |
checkin_extra_admin |
$checkin_id |
|
application/views/admin/checkins.php |
header_scripts_admin |
|
|
application/views/admin/layout.php |
admin_header_top_left |
|
Admin Header Menu |
application/views/admin/layout.php |
admin_secondary_header_bar |
|
Admin Secondary Menu |
application/views/admin/layout.php |
admin_messages_custom_layout |
|
|
application/views/admin/messages.php |
message_extra_admin |
$message_id |
Message additional/extra stuff |
application/views/admin/messages.php |
message_from_admin |
$message_from |
Message additional/extra stuff |
application/views/admin/messages.php |
page_form_admin |
|
Runs just after the page description |
application/views/admin/pages.php |
report_extra_admin |
$incident |
Add items to the report list in admin |
application/views/admin/reports.php |
users_listing_header |
|
Add header item to users listing page |
application/views/admin/users.php |
users_listing_item |
$user_id |
Add item to users listing page |
application/views/admin/users.php |
users_form_admin |
$id |
Add content to users form |
application/views/admin/users_edit.php |
feed_atom_head |
|
Add to the feed head |
application/views/feed_atom.php |
feed_atom_item |
$item['id'] |
Add to the feed item |
application/views/feed_atom.php |
feed_rss_head |
|
Add to the feed head |
application/views/feed_rss2.php |
feed_rss_item |
$item['id'] |
Add to the feed head |
application/views/feed_rss2.php |
header_scripts_member |
|
Additional inline scripts |
application/views/members/layout.php |
report_extra_members |
$incident |
Add items to the report list in admin |
application/views/members/reports.php |
|
|
|
|
|
|
|
|
|
|
|
|