register_hook('PLUGIN_MOVE_HANDLERS_REGISTER', 'BEFORE', $this, 'handle_move', array()); } /** * Handle the move of a page * @param Doku_Event $event * @param $params */ function handle_move(Doku_Event $event, $params) { /** * The handlers is the name of the component (ie refers to the {@link syntax_plugin_combo_link} handler) * and 'rewrite_combo' to the below method */ $event->data['handlers'][syntax_plugin_combo_link::COMPONENT] = array($this, 'rewrite_combo'); } /** * * @param $match * @param $state * @param $pos * @param $plugin * @param helper_plugin_move_handler $handler */ public function rewrite_combo($match, $state, $pos, $plugin, helper_plugin_move_handler $handler) { /** * We call the original move method * that supports Link rewriting */ $handler->internallink($match, $state, $pos); } }