'Pavel Vlasov', 'email' => 'Pavel.Vlasov@nasdanika.com', 'name' => 'JCapture', 'desc' => 'Plugin for making screen captures.', 'url' => 'http://www.nasdanika.com/wiki/doku.php?id=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' => '', ); } }