register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array()); } function handle_toolbar(& $event, $param) { $minimapShortcutKey = $this->getConf('WebCodeShortCutKey'); $event->data[] = array( 'type' => 'insert', 'title' => $this->getLang('MiniMapButtonTitle').' ('.$this->getLang('AccessKey').': '.$minimapShortcutKey.')', 'icon' => '../../plugins/minimap/images/minimap.png', 'insert' => '\n', 'key' => $minimapShortcutKey, 'block' => true ); } }