summaryrefslogtreecommitdiff
path: root/actions/all.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-03-02 12:33:25 -0500
committerSarven Capadisli <csarven@status.net>2010-03-02 12:33:25 -0500
commit350e1289af67cb2830c8ca7fc8202566ab32f2e0 (patch)
treef32bc79e713f14feb4812ae5b21350689e5b1526 /actions/all.php
parent623faf9f2d83b8fd6134e77ad6f5dd1cedc7a5c1 (diff)
Added event hook for before and after personal timeline content
Diffstat (limited to 'actions/all.php')
-rw-r--r--actions/all.php22
1 files changed, 13 insertions, 9 deletions
diff --git a/actions/all.php b/actions/all.php
index 3eb185214..6be0c00e3 100644
--- a/actions/all.php
+++ b/actions/all.php
@@ -144,18 +144,22 @@ class AllAction extends ProfileAction
function showContent()
{
- $nl = new NoticeList($this->notice, $this);
+ if (Event::handle('StartShowAllContent', array($this))) {
+ $nl = new NoticeList($this->notice, $this);
- $cnt = $nl->show();
+ $cnt = $nl->show();
- if (0 == $cnt) {
- $this->showEmptyListMessage();
- }
+ if (0 == $cnt) {
+ $this->showEmptyListMessage();
+ }
- $this->pagination(
- $this->page > 1, $cnt > NOTICES_PER_PAGE,
- $this->page, 'all', array('nickname' => $this->user->nickname)
- );
+ $this->pagination(
+ $this->page > 1, $cnt > NOTICES_PER_PAGE,
+ $this->page, 'all', array('nickname' => $this->user->nickname)
+ );
+
+ Event::handle('EndShowAllContent', array($this));
+ }
}
function showPageTitle()