devel:event:plugin_popularity_data_setup
Table of Contents
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
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/plugin_popularity_data_setup.txt · Last modified: 2018-12-08 16:00 by torpedo