]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/favorform.php
Make oohembed endpoint configurable.
[quix0rs-gnu-social.git] / lib / favorform.php
index c67e186974e1241a905d8984e726f4d4bac5c932..f3a7a97569019e0b635c4fdf1f1cf656826ff905 100644 (file)
@@ -88,7 +88,7 @@ class FavorForm extends Form
 
     function action()
     {
-        common_local_url('favor');
+        return common_local_url('favor');
     }
 
     /**
@@ -103,6 +103,18 @@ class FavorForm extends Form
                            common_session_token());
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Favor this notice'));
+    }
+
+
     /**
      * Data elements
      *
@@ -125,6 +137,17 @@ class FavorForm extends Form
     function formActions()
     {
         $this->out->submit('favor-submit-' . $this->notice->id,
-                           _('Make a favorite'));
+                           _('Favor'), 'submit', null, _('Favor this notice'));
     }
-}
\ No newline at end of file
+    
+    /**
+     * Class of the form.
+     *
+     * @return string the form's class
+     */
+    
+    function formClass()
+    {
+        return 'form_favor';
+    }
+}