diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-04-30 00:39:11 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-04-30 00:39:11 +0000 |
commit | d6b538eff87b7c5e8205577e2dbc6e4b14e7b871 (patch) | |
tree | be88819db718d7cd5aab65b67ab2e33e5fccb2b9 /modules/taxonomy/taxonomy.module | |
parent | f0cd92dddef7fed244878d31d330e07174feefa2 (diff) | |
download | brdo-d6b538eff87b7c5e8205577e2dbc6e4b14e7b871.tar.gz brdo-d6b538eff87b7c5e8205577e2dbc6e4b14e7b871.tar.bz2 |
Forward port from 4.7
#60934, The vocabulary list screen needs an 'add term' operation, patch by chx
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index c3f40006b..825a3734f 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -132,6 +132,7 @@ function taxonomy_overview_vocabularies() { $form[$vocabulary->vid]['type'] = array('#value' => implode(', ', $types)); $form[$vocabulary->vid]['edit'] = array('#value' => l(t('edit vocabulary'), "admin/taxonomy/edit/vocabulary/$vocabulary->vid")); $form[$vocabulary->vid]['list'] = array('#value' => l(t('list terms'), "admin/taxonomy/$vocabulary->vid")); + $form[$vocabulary->vid]['add'] = array('#value' => l(t('add terms'), "admin/taxonomy/$vocabulary->vid/add/term")); } return drupal_get_form('taxonomy_overview_vocabularies', $form); @@ -149,13 +150,14 @@ function theme_taxonomy_overview_vocabularies($form) { $row[] = form_render($form[$key]['type']); $row[] = form_render($form[$key]['edit']); $row[] = form_render($form[$key]['list']); + $row[] = form_render($form[$key]['add']); $rows[] = $row; } } if (!$rows) { - $rows[] = array(array('data' => t('No categories available.'), 'colspan' => '4', 'class' => 'message')); + $rows[] = array(array('data' => t('No categories available.'), 'colspan' => '5', 'class' => 'message')); } - $header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '2')); + $header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '3')); $output = theme('table', $header, $rows, array('id' => 'taxonomy')); $output .= form_render($form); |