From 9979aceab035616297b1ba95ec33c9905a4fed2b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 15 Nov 2004 11:16:39 +0000 Subject: - Patch #12783 by Stefan: various small consistency/usability improvements. --- modules/taxonomy/taxonomy.module | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') 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") .')
'; } - $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); } -- cgit v1.2.3