- Patch #706894 by amateescu, sun: poll form uses #description for a button.

merge-requests/26/head
Dries Buytaert 2011-09-24 20:56:18 +02:00
parent cf7684b611
commit 267c40e690
1 changed files with 3 additions and 1 deletions

View File

@ -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'),