]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/blockform.php
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
[quix0rs-gnu-social.git] / lib / blockform.php
index 51e43f8b599158cad389d082459a8058a6758d41..af766b8237fbf7127a9f965b21589f81a175d2e5 100644 (file)
@@ -88,6 +88,19 @@ class BlockForm extends Form
         return 'block-' . $this->profile->id;
     }
 
+
+    /**
+     * class of the form
+     *
+     * @return string class of the form
+     */
+
+    function formClass()
+    {
+        return 'form_user_block';
+    }
+
+
     /**
      * Action of the form
      *
@@ -99,6 +112,18 @@ class BlockForm extends Form
         return common_local_url('block');
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Block this user'));
+    }
+
+
     /**
      * Data elements of the form
      *
@@ -125,6 +150,6 @@ class BlockForm extends Form
 
     function formActions()
     {
-        $this->out->submit('submit', _('Block'));
+        $this->out->submit('submit', _('Block'), 'submit', null, _('Block this user'));
     }
-}
\ No newline at end of file
+}