Home
last modified time | relevance | path

Searched hist:"5875 e534bcbccf90fe3767fc77d8ea2a76aad9bd" (Results 1 – 1 of 1) sorted by relevance

/dokuwiki/lib/plugins/popularity/
H A Dhelper.php5875e534bcbccf90fe3767fc77d8ea2a76aad9bd Fri May 15 13:49:11 UTC 2015 Guillaume Turri <guillaume.turri@gmail.com> Plugins can send usage data

They just need to register to the PLUGIN_USAGE_DATA event, and then to add
either a simple string, or an array of key / value. For example:

function register(Doku_Event_Handler $controller) {
$controller->register_hook('PLUGIN_USAGE_DATA', 'AFTER', $this, 'usage_data');
}

function usage_data(&$event){
$event->data['my_plugin_name'] = 'my usage data';

//or: $event->data['my_plugin_name'] = array ('k1' => 'v1', 'k2' => 'v2');
}