- Modified patch by mikeryan: make it possible to administer system vocabularies.
parent
c9c947619f
commit
dea2bd2123
|
@ -366,7 +366,6 @@ function taxonomy_overview() {
|
||||||
$header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '3'));
|
$header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '3'));
|
||||||
$vocabularies = taxonomy_get_vocabularies();
|
$vocabularies = taxonomy_get_vocabularies();
|
||||||
foreach ($vocabularies as $vocabulary) {
|
foreach ($vocabularies as $vocabulary) {
|
||||||
if ($vocabulary->module == 'taxonomy') {
|
|
||||||
$types = array();
|
$types = array();
|
||||||
foreach ($vocabulary->nodes as $type) {
|
foreach ($vocabulary->nodes as $type) {
|
||||||
$node_type = node_invoke($type, 'node_name');
|
$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'));
|
$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) {
|
if (!$rows) {
|
||||||
$rows[] = array(array('data' => t('No categories available.'), 'colspan' => '5', 'class' => 'message'));
|
$rows[] = array(array('data' => t('No categories available.'), 'colspan' => '5', 'class' => 'message'));
|
||||||
|
|
|
@ -366,7 +366,6 @@ function taxonomy_overview() {
|
||||||
$header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '3'));
|
$header = array(t('Name'), t('Type'), array('data' => t('Operations'), 'colspan' => '3'));
|
||||||
$vocabularies = taxonomy_get_vocabularies();
|
$vocabularies = taxonomy_get_vocabularies();
|
||||||
foreach ($vocabularies as $vocabulary) {
|
foreach ($vocabularies as $vocabulary) {
|
||||||
if ($vocabulary->module == 'taxonomy') {
|
|
||||||
$types = array();
|
$types = array();
|
||||||
foreach ($vocabulary->nodes as $type) {
|
foreach ($vocabulary->nodes as $type) {
|
||||||
$node_type = node_invoke($type, 'node_name');
|
$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'));
|
$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) {
|
if (!$rows) {
|
||||||
$rows[] = array(array('data' => t('No categories available.'), 'colspan' => '5', 'class' => 'message'));
|
$rows[] = array(array('data' => t('No categories available.'), 'colspan' => '5', 'class' => 'message'));
|
||||||
|
|
Loading…
Reference in New Issue