From: Evan Prodromou Date: Fri, 13 Aug 2010 05:11:26 +0000 (-0700) Subject: add title element to notice form X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79b5f1cea5ffadf18d3680ddeb1f8bd4d974b059;p=quix0rs-gnu-social.git add title element to notice form --- diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php index 9dfb4b21c2..524faef3a2 100644 --- a/plugins/NoticeTitle/NoticeTitlePlugin.php +++ b/plugins/NoticeTitle/NoticeTitlePlugin.php @@ -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; + } + }