- Modified patch by mikeryan: make it possible to administer system vocabularies.

4.7.x
Dries Buytaert 2005-04-12 19:18:57 +00:00
parent c9c947619f
commit dea2bd2123
2 changed files with 34 additions and 38 deletions

View File

@ -366,7 +366,6 @@ function taxonomy_overview() {
$header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '3'));
$vocabularies = taxonomy_get_vocabularies();
foreach ($vocabularies as $vocabulary) {
if ($vocabulary->module == 'taxonomy') {
$types = array();
foreach ($vocabulary->nodes as $type) {
$node_type = node_invoke($type, 'node_name');
@ -390,7 +389,6 @@ function taxonomy_overview() {
$rows[] = array(array('data' => t('This is a free tagging vocabulary:') . ' ' . l(t('view terms'), "admin/taxonomy/$vocabulary->vid") . '.', 'colspan' => '5', 'class' => 'message'));
}
}
}
if (!$rows) {
$rows[] = array(array('data' => t('No categories available.'), 'colspan' => '5', 'class' => 'message'));

View File

@ -366,7 +366,6 @@ function taxonomy_overview() {
$header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '3'));
$vocabularies = taxonomy_get_vocabularies();
foreach ($vocabularies as $vocabulary) {
if ($vocabulary->module == 'taxonomy') {
$types = array();
foreach ($vocabulary->nodes as $type) {
$node_type = node_invoke($type, 'node_name');
@ -390,7 +389,6 @@ function taxonomy_overview() {
$rows[] = array(array('data' => t('This is a free tagging vocabulary:') . ' ' . l(t('view terms'), "admin/taxonomy/$vocabulary->vid") . '.', 'colspan' => '5', 'class' => 'message'));
}
}
}
if (!$rows) {
$rows[] = array(array('data' => t('No categories available.'), 'colspan' => '5', 'class' => 'message'));