diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-20 01:31:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-20 01:31:07 +0000 |
commit | b0cbc018ec0ab568a6c9bff712a331417a3ccd8d (patch) | |
tree | 6ba0a3b5bdc3f2b61d6b18d9ba4e762edb87f098 /modules/poll/poll.module | |
parent | cb1f944383477ea46d49326887ababb8f64899dd (diff) | |
download | brdo-b0cbc018ec0ab568a6c9bff712a331417a3ccd8d.tar.gz brdo-b0cbc018ec0ab568a6c9bff712a331417a3ccd8d.tar.bz2 |
- Patch #882694 by mgifford, sun, ksenzee, bleen18, yched: add missing form element titles for accessibility.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r-- | modules/poll/poll.module | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 9e314f11d..4b2bee71a 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -390,12 +390,16 @@ function _poll_choice_form($key, $chid = NULL, $value = '', $votes = 0, $weight $form['chtext'] = array( '#type' => 'textfield', + '#title' => $value !== '' ? t('Choice label') : t('New choice label'), + '#title_display' => 'invisible', '#default_value' => $value, '#parents' => array('choice', $key, 'chtext'), ); $form['chvotes'] = array( '#type' => 'textfield', + '#title' => $value !== '' ? t('Vote count for choice @label', array('@label' => $value)) : t('Vote count for new choice'), + '#title_display' => 'invisible', '#default_value' => $votes, '#size' => 5, '#maxlength' => 7, @@ -405,6 +409,8 @@ function _poll_choice_form($key, $chid = NULL, $value = '', $votes = 0, $weight $form['weight'] = array( '#type' => 'weight', + '#title' => $value !== '' ? t('Weight for choice @label', array('@label' => $value)) : t('Weight for new choice'), + '#title_display' => 'invisible', '#default_value' => $weight, '#delta' => $size, '#parents' => array('choice', $key, 'weight'), @@ -688,6 +694,8 @@ function poll_view_voting($form, &$form_state, $node, $block = FALSE) { } $form['choice'] = array( '#type' => 'radios', + '#title' => t('Choices'), + '#title_display' => 'invisible', '#default_value' => -1, '#options' => $list, ); |