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 17 Next »

Unknown macro: {table-plus}

Hook

Parameter

Description

File

swiftriver.header.js

 

Add Javascript to the header

application/classes/controller/media.php

swiftriver.river.save

$river

Runs after saving a river. Has a River Object

application/classes/model/river.php

swiftriver.header.css

 

Add CSS to the header

application/classes/controller/media.php

swiftriver.river.filter

$query

Allows for adding for more filters via Plugin. Has a Query Object

application/classes/controller/river.php

swiftriver.river.pre_save

$post

Hook into the River $post object before a save. Has a $post Validation Object

application/classes/controller/river.php

swiftriver.river.nav.more

$river_id

Hook into to the 'More' dropdown

themes/default/views/river/more_control.php

swiftriver.template.head

 

Hook into the <head></head> of the template

themes/default/views/template/header.php

swiftriver.footer

 

Hook into the footer right before the </body> tag

themes/default/views/template/footer.php

swiftriver.settings.nav

$active

Hook into the website settings nav

themes/default/views/pages/settings/layout.php

swiftriver.dashboard.nav

$nav

Hook into the dashboard nav

application/classes/controller/user.php

swiftriver.droplet.extract_metadata

$droplet

Hook into the metadata extraction

application/classes/swifriver/dropletqueue.php

swiftriver.channel.option.file

$file

Run when a file containing channel options (e.g. an OPML file with RSS urls) is uploaded

application/classes/controller/river/settings/channels.php

swiftriver.channel.option.pre_save

$option_data

Run sanity checks on the channel options before they are saved

application/classes/controller/river/settings/channels.php

swiftriver.channel.option.post_save

$option

Run after a channel option e.g. an RSS URL has been saved

application/classes/model/channel/filter/option.php

swiftriver.channel.option.pre_delete

$option

Run before a channel option is deleted from the application

application/classes/model/channel/filter/option.php

swiftriver.filter.pre_delete

$option

Before a filter is deleted

application/classes/mode/filter.php

swiftriver.filter.parameter.post_save

$parameter

When a filter parameter has been saved

application/classes/model/filter/parameter.php

swiftriver.filter.parameter.pre_delete

$parameter

Before a filter parameter is deleted

application/classes/model/filter/parameter.php

swiftriver.template.river.settings.channels

$river

Allows plugins to add content to the river channels view (in the river settings section)

application/classes/controller/controller/river/channels.php

  • No labels