summaryrefslogtreecommitdiff
path: root/lib/disfavorform.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-09-29 14:07:46 -0700
committerZach Copley <zach@status.net>2010-09-29 16:35:14 -0700
commit0ac333ec801b8df68da69fa38a13d07960bd9649 (patch)
treeee4b52f2610db0e2dee1b0ff9afef2c24fbdb039 /lib/disfavorform.php
parent9109fe3c631ebef14f2de061fc6fc565ee0f7174 (diff)
Add Start/EndFavorNoticeForm and Start/EndDisFavorNoticeForm hooks
Diffstat (limited to 'lib/disfavorform.php')
-rw-r--r--lib/disfavorform.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/disfavorform.php b/lib/disfavorform.php
index 5b135b38a..6023766d7 100644
--- a/lib/disfavorform.php
+++ b/lib/disfavorform.php
@@ -123,9 +123,13 @@ class DisfavorForm extends Form
function formData()
{
- $this->out->hidden('notice-n'.$this->notice->id,
- $this->notice->id,
- 'notice');
+ if (Event::handle('StartDisFavorNoticeForm', array($this, $this->notice))) {
+ $this->out->hidden('notice-n'.$this->notice->id,
+ $this->notice->id,
+ 'notice');
+ Event::handle('EndDisFavorNoticeForm', array($this, $this->notice));
+ }
+
}
/**