Skip to content
Snippets Groups Projects
  1. May 27, 2015
    • Guillaume Turri's avatar
      Plugins can send usage data · 5875e534
      Guillaume Turri authored
      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');
          }
      5875e534
  2. May 15, 2015
  3. May 14, 2015
  4. May 13, 2015
  5. May 09, 2015
  6. May 08, 2015
  7. May 07, 2015
  8. May 06, 2015
  9. May 05, 2015
  10. May 04, 2015
  11. May 03, 2015
  12. May 02, 2015
  13. Apr 28, 2015
  14. Apr 25, 2015
Loading