summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--EVENTS.txt5
-rw-r--r--lib/action.php6
2 files changed, 10 insertions, 1 deletions
diff --git a/EVENTS.txt b/EVENTS.txt
index 4b8260b3c..d9634325d 100644
--- a/EVENTS.txt
+++ b/EVENTS.txt
@@ -34,3 +34,8 @@ StartShowLaconicaScripts: Showing Laconica script links (use this to link to a C
EndShowLaconicaScripts: End showing Laconica script links
- $action: the current action
+StartShowSections: Start the list of sections in the sidebar
+- $action: the current action
+
+EndShowSections: End the list of sections in the sidebar
+- $action: the current action
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');
}