]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add title element to notice form
authorEvan Prodromou <evan@status.net>
Fri, 13 Aug 2010 05:11:26 +0000 (22:11 -0700)
committerEvan Prodromou <evan@status.net>
Fri, 13 Aug 2010 05:11:26 +0000 (22:11 -0700)
plugins/NoticeTitle/NoticeTitlePlugin.php

index 9dfb4b21c239c8b9a4841d4024f77cdfc4b13bb9..524faef3a201e68bc66aeb9c6605150afd8b1d06 100644 (file)
@@ -107,5 +107,18 @@ class NoticeTitlePlugin extends Plugin
                             _m('Adds optional titles to notices'));
         return true;
     }
+
+    function onStartShowNoticeFormData($form)
+    {
+        $form->out->element('input', array('type' => 'text',
+                                           'id' => 'notice_title',
+                                           'name' => 'notice_title',
+                                           'size' => 40,
+                                           'value' => _m('Title'),
+                                           'style' => 'color: 333333',
+                                           'onFocus' => 'this.value = ""; this.style = \'color: black\';'));
+        return true;
+    }
+
 }