public function register(Doku_Event_Handler $controller) { $controller->register_hook('HTML_SECEDIT_BUTTON', 'BEFORE', $this, '_editbutton'); $controller->register_hook('HTML_EDIT_FORMSELECTION', 'BEFORE', $this, '_editform'); $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, '_editpost'); } public function _handle_edit_post(Doku_Event $event) { // FIXME: Insert the name of a form field you use if (!isset($_POST['some_of_the_form_fields_you_use'])) { return; } global $TEXT; // FIXME: Create wikitext from post $TEXT = magic_form_to_wiki_function(); }