hlp =& plugin_load('helper','davcal'); } function register(Doku_Event_Handler $controller) { $controller->register_hook('PARSER_CACHE_USE', 'BEFORE', $this, 'handle_parser_cache_use'); } function handle_parser_cache_use(&$event, $param) { global $ID; $cache = &$event->data; if(!isset($cache->page)) return; $davcalMeta = p_get_metadata($ID, 'plugin_davcal'); if(!$davcalMeta) return; if(isset($davcalMeta['table']) && $davcalMeta['table'] === true) { $event->preventDefault(); $event->stopPropagation(); $event->result = false; } } }