function theme_tagadelic_list_vocs in Tagadelic 6
Theme function that creates a comma separated list of vocabulary terms.
@params $vocs An array of taxonomy vocabulary ids.
1 theme call to theme_tagadelic_list_vocs()
- tagadelic_page_title_callback in ./
tagadelic.module - Menu callback to render the tagadelic title.
File
- ./
tagadelic.module, line 144
Code
function theme_tagadelic_list_vocs($vocs) {
$voc_names = array();
foreach ($vocs as $vid) {
$vocabulary = taxonomy_vocabulary_load($vid);
if (!empty($vocabulary)) {
$voc_names[] = $vocabulary->name;
}
}
return join(', ', $voc_names);
}