DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:plugin_popularity_data_setup

PLUGIN_POPULARITY_DATA_SETUP

Description:
Triggered by the popularity plugin to let plugins add their own popularity data
DefaultAction:
None. It's just used to let plugin register in order to add data
Preventable:
no
Added:
2015-05-27

This event is signaled by _gather() in lib/plugins/popularity/helper.php when the popularity plugin gathers the data to send, handlers can use it to add more data.

Passed Data

The passed Doku_Event object has the field: $data.

  • The $data field is a key-value array passed by reference, in which plugins can add data. The key inserted should be the name of the plugin. The value inserted should be either a string, or a key-value array.

The BEFORE and AFTER events let you add entries to the $data array.

See also

devel/event/plugin_popularity_data_setup.txt · Last modified: 2018-12-08 16:00 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki