register_hook('HTML_SECEDIT_BUTTON', 'BEFORE', $this, '_secedit_button'); } /** * Edit Form * * @param Doku_Event &$event */ public function _editform(Doku_Event $event) { if (!in_array($event->data['target'], $this->section_edit_buttons)) { return; } $event->data['target'] = 'container'; return; } /** * Set Section Edit button * * @param Doku_Event &$event */ public function _secedit_button(Doku_Event $event) { global $lang; if (!in_array($event->data['target'], $this->section_edit_buttons)) { // would suppress other edit buttons except for containers. But affects every theme. //$event->data['name'] = ''; return; } $event->data['name'] = $lang['btn_secedit'] . ' - ' . ucfirst(str_replace('plugin_bootstyle_', '', $event->data['target'])); } }