register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array ()); } function handle_toolbar(&$event, $param) { $unitShortcutKey = $this->getConf('UnitShortCutKey'); $event->data[] = array( 'type' => 'format', 'title' => $this->getLang('DocBlockButtonTitle').' ('.$this->getLang('AccessKey').': '.$unitShortcutKey.')', 'icon' => '../../plugins/'.webcomponent::PLUGIN_NAME.'/images/docblock.png', 'open' => '\n\n\n\t', 'close' => '\n\t\n\tt\n\t\n', 'key' => $unitShortcutKey ); } }