h1. Plugin Actions
h3. 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:
{code:language=php}<?php
// Email subscribers whenever a new report is created
Event::add('ushahidi_action.report_add', 'email_subscribers');
?>{code}
h2. Reference
{table-plus:sortColumn=1|sortIcon=true}
|| Action || Parameter \\ || Description \\ || File \\ ||
| report_delete | $incident_id \\ | Report deleted \\ | applications/controllers/admin/reports.php \\ |
| report_meta | $incident_id | Add items to the Report Meta | applications/themes/default/reports_view.php |
| report_form_admin | | | |
| | | | |
{table-plus} |