summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-11-15 11:16:39 +0000
committerDries Buytaert <dries@buytaert.net>2004-11-15 11:16:39 +0000
commit9979aceab035616297b1ba95ec33c9905a4fed2b (patch)
tree37679df887bb271ddee3ba22f91a305c9ad6b40f /modules/taxonomy.module
parentc13abe16555a8a7f70021dae0cf9f3dd20e6c83d (diff)
downloadbrdo-9979aceab035616297b1ba95ec33c9905a4fed2b.tar.gz
brdo-9979aceab035616297b1ba95ec33c9905a4fed2b.tar.bz2
- Patch #12783 by Stefan: various small consistency/usability improvements.
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 503449daa..42ece7d17 100644
--- a/modules/taxonomy.module
+++ b/modules/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);
}