summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-08-12 22:11:26 -0700
committerEvan Prodromou <evan@status.net>2010-08-12 22:11:26 -0700
commit79b5f1cea5ffadf18d3680ddeb1f8bd4d974b059 (patch)
treeed14d871ddb2c97500956d43c4b931e585058186 /plugins
parentac6486f12e3a51fc0b7b1433de881934d8029299 (diff)
add title element to notice form
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NoticeTitle/NoticeTitlePlugin.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php
index 9dfb4b21c..524faef3a 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;
+ }
+
}