register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ()); } /** * Handles the "New PlantUML Graph" button. * * @param Doku_Event $event event object by reference * @param mixed $param ignored * @return void */ public function insert_button(Doku_Event &$event, $param) { $event->data[] = array ( 'type' => 'format', 'icon' => '../../plugins/plantumlparser/res/toolbar_icon.png', 'title' => htmlspecialchars('New PlantUML Graph'), 'open' => '', 'close' => '', 'sample' => '\n@startuml\nBob -> Alice : hello\n@enduml\n', ); } } // vim:ts=4:sw=4:et: