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:
<?php // Email subscribers whenever a new report is created Event::add('ushahidi_action.report_add', 'email_subscribers'); ?> |
Action |
Parameter |
Description |
File |
---|---|---|---|
report_delete |
$incident_id |
Report deleted |
applications/controllers/admin/reports.php |
|
|
|
|
|
|
|
|
|
|
|
|