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:sortIcon=true|columnTypes=S|id=actions_table}{table-plus}
{table-plus:sortIcon=true|columnTypes=S|id=actions_table}{table-plus}
{table-plus}{table-plus}

|| Action || Parameter \\ || Description \\ || File \\ ||
| report_delete | $incident_id \\ | Report deleted \\ | applications/controllers/admin/reports.php \\ |
| | | | |
| | | | |
| | | | |