Skip to content
Snippets Groups Projects
Commit 5c752f6c authored by chris's avatar chris
Browse files

event ACTION_TEMPLATE

This event is advisory only.
Event data is the $ACT variable
The default action is to display an "unknown action" message

The event is triggered by tpl_content if it does not recognise the $ACT value. It is
the complement to event 'ACTION_DISPATCH'.  Handlers of this event can output XHTML
which will be displayed in the main dokuwiki window - ie. where the wiki page would
normally be displayed.

darcs-hash:20060414201705-9b6ab-f8ede6a2fb601d734c115ee09bb57195ad7d1e2b.gz
parent e0ad864e
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,10 @@ function tpl_content(){
tpl_admin();
break;
default:
msg("Failed to handle command: ".hsc($ACT),-1);
$evt = new event('ACTION_TEMPLATE',$ACT);
$evt->advise();
if ($evt->_default)
msg("Failed to handle command: ".hsc($ACT),-1);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment