register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array()); $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, '_addparams'); $controller->register_hook('AJAX_CALL_UNKNOWN', 'BEFORE', $this, '_ajax_call'); } public function _addparams($event, $param) { global $JSINFO; global $INPUT; // filter for ft* in GET $f = function ($value) { return strpos($value, "tf") === 0; }; $get_tagfilter = array_filter(array_keys($_GET), $f); //filter for ft_