Added hook for notice item. After <li> and Before </li>. Allows

authors to include aside data to their notice items
This commit is contained in:
Sarven Capadisli 2009-09-25 12:47:14 +00:00
parent b617c608ea
commit d3d9913be0
2 changed files with 12 additions and 3 deletions

View File

@ -194,6 +194,12 @@ StartShowExportData: just before showing the <div> with export data (feeds)
EndShowExportData: just after showing the <div> with export data (feeds)
- $action: action object being shown
StartShowNoticeItem: just before showing the notice item
- $action: action object being shown
EndShowNoticeItem: just after showing the notice item
- $action: action object being shown
StartShowPageNotice: just before showing the page notice (instructions or error)
- $action: action object being shown

View File

@ -178,9 +178,12 @@ class NoticeListItem extends Widget
function show()
{
$this->showStart();
if (Event::handle('StartShowNoticeItem', array($this))) {
$this->showNotice();
$this->showNoticeInfo();
$this->showNoticeOptions();
Event::handle('EndShowNoticeItem', array($this));
}
$this->showEnd();
}