*/ function register(Doku_Event_Handler $controller) { $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array()); } function handle_toolbar(&$event, $param) { $event->data[] = array( 'type' => 'picker', 'title' => $this->getLang('note_picker'), 'icon' => '../../plugins/note/images/note_picker.png', 'list' => array( array( 'type' => 'format', 'title' => $this->getLang('tb_note'), 'icon' => '../../plugins/note/images/tb_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_tip'), 'icon' => '../../plugins/note/images/tb_tip.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_important'), 'icon' => '../../plugins/note/images/tb_important.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_warning'), 'icon' => '../../plugins/note/images/tb_warning.png', 'open' => '', 'close' => '', ), ) ); } }