function taxonomy_manager_voc_list in Taxonomy Manager 6.2
Same name and namespace in other branches
- 5 taxonomy_manager.module \taxonomy_manager_voc_list()
- 6 taxonomy_manager.admin.inc \taxonomy_manager_voc_list()
- 7 taxonomy_manager.admin.inc \taxonomy_manager_voc_list()
list of vocabularies, which link to Taxonomy Manager interface
1 string reference to 'taxonomy_manager_voc_list'
- taxonomy_manager_menu in ./
taxonomy_manager.module - Implementation of hook_menu
File
- ./
taxonomy_manager.admin.inc, line 15 - Taxonomy Manager Admin
Code
function taxonomy_manager_voc_list() {
$output = l(t('Add new vocabulary'), 'admin/content/taxonomy/add/vocabulary') . ' | ';
$output .= l(t('Edit vocabulary settings'), 'admin/content/taxonomy') . '<br /><br />';
$vocabularies = taxonomy_get_vocabularies();
$voc_list = array();
foreach ($vocabularies as $vocabulary) {
$voc_list[] = l($vocabulary->name, 'admin/content/taxonomy_manager/voc/' . $vocabulary->vid);
}
if (!count($voc_list)) {
$voc_list[] = t('No Vocabularies available');
}
$output .= theme('item_list', $voc_list, t("Vocabularies:"));
return $output;
}