Commit f75c2328 authored by Sarven Capadisli's avatar Sarven Capadisli

Hooks for: local navigation

parent 673e7d25
...@@ -82,3 +82,9 @@ StartNoticeSave: before inserting a notice (good place for content filters) ...@@ -82,3 +82,9 @@ StartNoticeSave: before inserting a notice (good place for content filters)
EndNoticeSave: after inserting a notice and related code EndNoticeSave: after inserting a notice and related code
- $notice: notice that was saved (with ID and URI) - $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
...@@ -474,7 +474,10 @@ class Action extends HTMLOutputter // lawsuit ...@@ -474,7 +474,10 @@ class Action extends HTMLOutputter // lawsuit
function showCore() function showCore()
{ {
$this->elementStart('div', array('id' => 'core')); $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))) { if (Event::handle('StartShowContentBlock', array($this))) {
$this->showContentBlock(); $this->showContentBlock();
Event::handle('EndShowContentBlock', array($this)); Event::handle('EndShowContentBlock', array($this));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment