diff options
author | Zach Copley <zach@status.net> | 2010-09-29 14:07:46 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-09-29 16:35:14 -0700 |
commit | 0ac333ec801b8df68da69fa38a13d07960bd9649 (patch) | |
tree | ee4b52f2610db0e2dee1b0ff9afef2c24fbdb039 /lib/favorform.php | |
parent | 9109fe3c631ebef14f2de061fc6fc565ee0f7174 (diff) |
Add Start/EndFavorNoticeForm and Start/EndDisFavorNoticeForm hooks
Diffstat (limited to 'lib/favorform.php')
-rw-r--r-- | lib/favorform.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/favorform.php b/lib/favorform.php index 625df7c8b..4e2891ffd 100644 --- a/lib/favorform.php +++ b/lib/favorform.php @@ -123,9 +123,12 @@ class FavorForm extends Form function formData() { - $this->out->hidden('notice-n'.$this->notice->id, - $this->notice->id, - 'notice'); + if (Event::handle('StartFavorNoticeForm', array($this, $this->notice))) { + $this->out->hidden('notice-n'.$this->notice->id, + $this->notice->id, + 'notice'); + Event::handle('EndFavorNoticeForm', array($this, $this->notice)); + } } /** |