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/taxonomy/taxonomy.admin.inc | |
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/taxonomy/taxonomy.admin.inc')
-rw-r--r-- | modules/taxonomy/taxonomy.admin.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index 7d314634a..84ac05bb3 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -19,7 +19,13 @@ function taxonomy_overview_vocabularies($form) { foreach ($vocabularies as $vocabulary) { $form[$vocabulary->vid]['#vocabulary'] = $vocabulary; $form[$vocabulary->vid]['name'] = array('#markup' => check_plain($vocabulary->name)); - $form[$vocabulary->vid]['weight'] = array('#type' => 'weight', '#delta' => 10, '#default_value' => $vocabulary->weight); + $form[$vocabulary->vid]['weight'] = array( + '#type' => 'weight', + '#title' => t('Weight for @title', array('@title' => $vocabulary->name)), + '#title_display' => 'invisible', + '#delta' => 10, + '#default_value' => $vocabulary->weight, + ); $form[$vocabulary->vid]['edit'] = array('#type' => 'link', '#title' => t('edit vocabulary'), '#href' => "admin/structure/taxonomy/$vocabulary->machine_name/edit"); $form[$vocabulary->vid]['list'] = array('#type' => 'link', '#title' => t('list terms'), '#href' => "admin/structure/taxonomy/$vocabulary->machine_name"); $form[$vocabulary->vid]['add'] = array('#type' => 'link', '#title' => t('add terms'), '#href' => "admin/structure/taxonomy/$vocabulary->machine_name/add"); @@ -663,8 +669,7 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary = ); $form['vocabulary_machine_name'] = array( - '#type' => 'textfield', - '#access' => FALSE, + '#type' => 'value', '#value' => isset($term->vocabulary_machine_name) ? $term->vocabulary_machine_name : $vocabulary->name, ); |