Skip to content

Instantly share code, notes, and snippets.

@berkes
Created September 29, 2010 11:13
<?php
/*
* menu callback to render the tagadelic title
*
* Args:
* @param $vocs. An array of vocabulary IDs
*/
function tagadelic_page_title_callback((array) $vocs) {
$title = '';
if (empty($vocs)) {
$title = t('Tags');
}
else {
$title = t('Tags in @vocabularies', array('@vocabularies' => theme('tagadelic_list_vocs', $vocs));
}
return $title;
}
function theme_tagadelic_list_vocs((array) $vocs) {
return join(', ', $vocs);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment