'Pavel Vlasov', 'email' => 'Pavel.Vlasov@hammurapi.com', 'name' => 'JCapture', 'desc' => 'Plugin for making screen captures.', 'url' => 'http://www.hammurapi.com/dokuwiki/doku.php/products:jcapture:start', ); } /** * Register the eventhandlers */ function register(&$controller) { $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ()); } /** * Inserts the toolbar button */ function insert_button(& $event, $param) { $event->data[] = array ( 'type' => 'JCapture', 'title' => 'Screen capture', 'icon' => '../../plugins/jcapture/camera.png', 'open' => '', 'close' => '', ); } }