summaryrefslogtreecommitdiff
path: root/modules/poll/poll.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-09-24 20:56:18 +0200
committerDries Buytaert <dries@buytaert.net>2011-09-24 20:56:18 +0200
commit267c40e69027c869da92a34d4569c09fcedd1d57 (patch)
treed58581e02574c9affda397f1987a4615d1ff8768 /modules/poll/poll.module
parentcf7684b611f3972835fa7278ce77f7dfd668cdd2 (diff)
downloadbrdo-267c40e69027c869da92a34d4569c09fcedd1d57.tar.gz
brdo-267c40e69027c869da92a34d4569c09fcedd1d57.tar.bz2
- Patch #706894 by amateescu, sun: poll form uses #description for a button.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r--modules/poll/poll.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 2737c2bd8..13d2606de 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -299,7 +299,9 @@ function poll_form($node, &$form_state) {
$form['choice_wrapper']['poll_more'] = array(
'#type' => 'submit',
'#value' => t('More choices'),
- '#description' => t("If the amount of boxes above isn't enough, click here to add more choices."),
+ '#attributes' => array(
+ 'title' => t("If the amount of boxes above isn't enough, click here to add more choices."),
+ ),
'#weight' => 1,
'#limit_validation_errors' => array(array('choice')),
'#submit' => array('poll_more_choices_submit'),