Hooks for: local navigation

This commit is contained in:
Sarven Capadisli 2009-02-20 23:47:24 +00:00
parent 673e7d2559
commit f75c2328cc
2 changed files with 10 additions and 1 deletions

View File

@ -82,3 +82,9 @@ StartNoticeSave: before inserting a notice (good place for content filters)
EndNoticeSave: after inserting a notice and related code
- $notice: notice that was saved (with ID and URI)
StartShowLocalNavBlock: Showing the local nav menu
- $action: the current action
EndShowLocalNavBlock: At the end of the local nav menu
- $action: the current action

View File

@ -474,7 +474,10 @@ class Action extends HTMLOutputter // lawsuit
function showCore()
{
$this->elementStart('div', array('id' => 'core'));
$this->showLocalNavBlock();
if (Event::handle('StartShowLocalNavBlock', array($this))) {
$this->showLocalNavBlock();
Event::handle('EndShowLocalNavBlock', array($this));
}
if (Event::handle('StartShowContentBlock', array($this))) {
$this->showContentBlock();
Event::handle('EndShowContentBlock', array($this));