]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
let actions set a default address for toselector
authorEvan Prodromou <evan@status.net>
Mon, 28 Mar 2011 20:24:02 +0000 (16:24 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 28 Mar 2011 20:24:02 +0000 (16:24 -0400)
lib/action.php

index 654ec7aa43e533b6c94ca8ba8bfc580935c9357a..3ac95b46a6223a31fc39b63cd50ef00660d8abe4 100644 (file)
@@ -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.
      *