DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

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.

Plugins handling this event

The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.

See also

devel/event/plugin_popularity_data_setup.txt · Last modified: 2015-08-11 23:12 by Klap-in