Event hook for notice search pages

This commit is contained in:
Brion Vibber 2011-03-15 15:33:37 -07:00
parent 579fc11862
commit 08b430a247

View File

@ -138,11 +138,14 @@ class NoticesearchAction extends SearchAction
$this->elementEnd('div');
return;
}
if (Event::handle('StartNoticeSearchShowResults', array($this, $q, $notice))) {
$terms = preg_split('/[\s,]+/', $q);
$nl = new SearchNoticeList($notice, $this, $terms);
$cnt = $nl->show();
$this->pagination($page > 1, $cnt > NOTICES_PER_PAGE,
$page, 'noticesearch', array('q' => $q));
Event::handle('EndNoticeSearchShowResults', array($this, $q, $notice));
}
}
function showScripts()