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 OMPL 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 |