From: Evan Prodromou Date: Fri, 15 May 2009 21:11:28 +0000 (-0400) Subject: add a hook for the page notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d13890a859eb657c1ee95b1b2a1144fdf46d6b4;p=quix0rs-gnu-social.git add a hook for the page notice --- diff --git a/lib/action.php b/lib/action.php index 4bd41c2266..6b130b6d55 100644 --- a/lib/action.php +++ b/lib/action.php @@ -591,7 +591,10 @@ class Action extends HTMLOutputter // lawsuit 'class' => 'system_notice')); $this->element('dt', null, _('Page notice')); $this->elementStart('dd'); - $this->showPageNotice(); + if (Event::handle('StartShowPageNotice', array($this))) { + $this->showPageNotice(); + Event::handle('EndShowPageNotice', array($this)); + } $this->elementEnd('dd'); $this->elementEnd('dl'); }