diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-02 14:56:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-02 14:56:32 +0000 |
commit | 92760988b9decb01831ba89bcc54056a702c3836 (patch) | |
tree | 4a27865ed1737d832e82a575521940503147cd43 /modules/taxonomy/taxonomy.admin.inc | |
parent | e7dedc4330f3d7bbc4fd861a4e5619d780bcca6c (diff) | |
download | brdo-92760988b9decb01831ba89bcc54056a702c3836.tar.gz brdo-92760988b9decb01831ba89bcc54056a702c3836.tar.bz2 |
- Patch #648410 by Dave Reid: standardize add 'empty' row functionality to all tables.
Diffstat (limited to 'modules/taxonomy/taxonomy.admin.inc')
-rw-r--r-- | modules/taxonomy/taxonomy.admin.inc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index 03942a8e3..0ffead389 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -79,17 +79,13 @@ function theme_taxonomy_overview_vocabularies($variables) { } } - if (empty($rows)) { - $rows[] = array(array('data' => t('No vocabularies available. <a href="@link">Add vocabulary</a>.', array('@link' => url('admin/structure/taxonomy/add'))), 'colspan' => '5')); - } - $header = array(t('Vocabulary name')); if (isset($form['submit'])) { $header[] = t('Weight'); drupal_add_tabledrag('taxonomy', 'order', 'sibling', 'vocabulary-weight'); } $header[] = array('data' => t('Operations'), 'colspan' => '3'); - return theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'taxonomy'))) . drupal_render_children($form); + return theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No vocabularies available.'),'attributes' => array('id' => 'taxonomy'))) . drupal_render_children($form); } /** @@ -704,7 +700,7 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary = '#default_value' => $parent, '#multiple' => TRUE, ); - + } $form['advanced']['weight'] = array( '#type' => 'textfield', |