summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 503449daa..42ece7d17 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -343,7 +343,7 @@ function _taxonomy_confirm_del_term($tid) {
* Generate a tabular listing of administrative functions for vocabularies.
*/
function taxonomy_overview() {
- $header = array(t('Name'), t('Node types'), array('data' => t('Operations'), 'colspan' => 3));
+ $header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '3'));
$vocabularies = taxonomy_get_vocabularies();
@@ -361,10 +361,14 @@ function taxonomy_overview() {
foreach ($tree as $term) {
$data .= _taxonomy_depth($term->depth) .' '. $term->name .' ('. l(t('edit term'), "admin/taxonomy/edit/term/$term->tid") .')<br />';
}
- $rows[] = array(array('data' => $data, 'colspan' => 5));
+ $rows[] = array(array('data' => $data, 'colspan' => '5'));
}
}
+ if (!$rows) {
+ $rows[] = array(array('data' => t('No categories available.'), 'colspan' => '5'));
+ }
+
return theme('table', $header, $rows);
}