summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorBrian <brian@megapump.com>2009-03-20 05:59:03 -0700
committerBrian <brian@megapump.com>2009-03-23 21:48:04 -0700
commit214468d17ea7342a76868030bb0ef83d47276296 (patch)
treec01bfce3298c8dc6bbc95d6d2a60712b31bad2b0 /lib/action.php
parenta1e37b2bd26e817a6fb1e3781c787de66d530cb6 (diff)
added a few Laconica events
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/action.php b/lib/action.php
index 975c2bfcb..799854177 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -97,9 +97,18 @@ class Action extends HTMLOutputter // lawsuit
$this->startHTML();
Event::handle('EndShowHTML', array($this));
}
+ if (Event::handle('StartShowHead', array($this))) {
$this->showHead();
+ Event::handle('EndShowHead', array($this));
+ }
+ if (Event::handle('StartShowBody', array($this))) {
$this->showBody();
+ Event::handle('EndShowBody', array($this));
+ }
+ if (Event::handle('StartEndHTML', array($this))) {
$this->endHTML();
+ Event::handle('EndEndHTML', array($this));
+ }
}
/**
@@ -577,7 +586,10 @@ class Action extends HTMLOutputter // lawsuit
{
$this->elementStart('div', array('id' => 'aside_primary',
'class' => 'aside'));
+ if (Event::handle('StartShowExportData', array($this))) {
$this->showExportData();
+ Event::handle('EndShowExportData', array($this));
+ }
if (Event::handle('StartShowSections', array($this))) {
$this->showSections();
Event::handle('EndShowSections', array($this));