Created
September 29, 2010 11:13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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