]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/subscribeform.php
First crack at Twitter-like JSON search results for the API
[quix0rs-gnu-social.git] / lib / subscribeform.php
index 996729a2816c6bb4d1d4d7dd6ee98a7250164e4e..c65134e461cc34470400525cd947630ce5bf4c7b 100644 (file)
@@ -80,6 +80,19 @@ class SubscribeForm extends Form
         return 'subscribe-' . $this->profile->id;
     }
 
+
+    /**
+     * class of the form
+     *
+     * @return string of the form class
+     */
+
+    function formClass()
+    {
+        return 'form_user_subscribe';
+    }
+
+
     /**
      * Action of the form
      *
@@ -91,6 +104,17 @@ class SubscribeForm extends Form
         return common_local_url('subscribe');
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Subscribe to this user'));
+    }
+
     /**
      * Data elements of the form
      *
@@ -112,6 +136,6 @@ class SubscribeForm extends Form
 
     function formActions()
     {
-        $this->out->submit('submit', _('Subscribe'));
+        $this->out->submit('submit', _('Subscribe'), 'submit', null, _('Subscribe to this user'));
     }
-}
\ No newline at end of file
+}