Hmm...seems to work with
AFTER.
Here is a little example action plugin:
/**
* Action part: makes the show/hide strings available in the browser
*/
class action_plugin_test extends DokuWiki_Action_Plugin {
/**
* Register the handle function in the controller
*
* @param Doku_event_handler $controller The event controller
*/
function register(Doku_Event_Handler $controller) {
$controller->register_hook('COMMON_WIKIPAGE_SAVE', 'AFTER', $this, 'page_saved');
}
function page_saved($event, $params) {
msg('Hello World!',-1);
}
}
It should show a red error message "Hello World!" if the event is triggered. There is one thing to mention: if you just click edit and then save (without any change), then the event will not be triggered! It will only be triggered if the page is changed AND saved!