From: Evan Prodromou Date: Mon, 28 Mar 2011 20:24:02 +0000 (-0400) Subject: let actions set a default address for toselector X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ec5a43bf4feb047d64728f4f95d06257750ec28a;p=quix0rs-gnu-social.git let actions set a default address for toselector --- diff --git a/lib/action.php b/lib/action.php index 654ec7aa43..3ac95b46a6 100644 --- a/lib/action.php +++ b/lib/action.php @@ -657,7 +657,8 @@ class Action extends HTMLOutputter // lawsuit if (Event::handle('StartMakeEntryForm', array($tag, $this, &$form))) { if ($tag == 'status') { - $form = new NoticeForm($this); + $options = $this->noticeFormOptions(); + $form = new NoticeForm($this, $options); } Event::handle('EndMakeEntryForm', array($tag, $this, $form)); } @@ -673,6 +674,11 @@ class Action extends HTMLOutputter // lawsuit $this->elementEnd('div'); } + function noticeFormOptions() + { + return array(); + } + /** * Show anonymous message. *