]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/disfavorform.php
add bookmarklet to main help
[quix0rs-gnu-social.git] / lib / disfavorform.php
index 25f99f43c157467c3886e35fdcebdee346f3f01a..45a9ddb1d42bc4d3a07f41a4453c70d1571132b1 100644 (file)
@@ -88,7 +88,7 @@ class DisfavorForm extends Form
 
     function action()
     {
-        common_local_url('disfavor');
+        return common_local_url('disfavor');
     }
 
     /**
@@ -103,6 +103,18 @@ class DisfavorForm extends Form
                            common_session_token());
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Disfavor this notice'));
+    }
+
+
     /**
      * Data elements
      *
@@ -125,6 +137,18 @@ class DisfavorForm extends Form
     function formActions()
     {
         $this->out->submit('disfavor-submit-' . $this->notice->id,
-                           _('Disfavor favorite'));
+                           _('Disfavor favorite'), 'submit', null, _('Disfavor this notice'));
     }
-}
\ No newline at end of file
+    
+    /**
+     * Class of the form.
+     *
+     * @return string the form's class
+     */
+
+    function formClass()
+    {
+        return 'form_disfavor';
+    }
+
+}