summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-09 16:56:38 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-09 16:56:38 -0500
commit32744124bcb8aa0683490a56defd4a79f072d278 (patch)
tree140d9ef387c60d77ac3ffab9ea201fd831b66225 /lib
parent2393fbec6062da4e681b4315e89b27c934a641f1 (diff)
Add a hook for showing sidebar sections
Diffstat (limited to 'lib')
-rw-r--r--lib/action.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php
index 0628dc70d..ce92addf5 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -524,12 +524,16 @@ class Action extends HTMLOutputter // lawsuit
*
* @return nothing
*/
+
function showAside()
{
$this->elementStart('div', array('id' => 'aside_primary',
'class' => 'aside'));
$this->showExportData();
- $this->showSections();
+ if (Event::handle('StartShowSections', array($this))) {
+ $this->showSections();
+ Event::handle('EndShowSections', array($this));
+ }
$this->elementEnd('div');
}