FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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

Unknown macro: {table-plus}

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

report_delete

$incident_id

 

application/controllers/admin/reports.php

location_from

$message_from

 

application/controllers/admin/reports.php

report_submit_admin

$post

 

application/controllers/admin/reports.php

report_edi

$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

$email

 

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

  • No labels