register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array ()); } function handle_toolbar(&$event, $param) { $webCodeShortcutKey = $this->getConf('WebCodeShortCutKey'); $event->data[] = array( 'type' => 'format', 'title' => $this->getLang('WebCodeButtonTitle').' ('.$this->getLang('AccessKey').': '.$webCodeShortcutKey.')', 'icon' => '../../plugins/webcode/images/webcode.png', 'open' => '\n', 'close' => '\n\n', 'key' => $webCodeShortcutKey ); } }