You are here

function tagadelic_page_title_callback in Tagadelic 6

Menu callback to render the tagadelic title.

Parameters

$vocs: An array of taxonomy vocabulary ids.

1 string reference to 'tagadelic_page_title_callback'
tagadelic_menu in ./tagadelic.module
Implements hook_menu().

File

./tagadelic.module, line 123

Code

function tagadelic_page_title_callback($vocs) {
  $title = '';
  if (empty($vocs)) {
    $title = t('Tags');
  }
  else {
    $title = t('Tags in @vocabularies', array(
      '@vocabularies' => theme('tagadelic_list_vocs', $vocs),
    ));
  }
  return $title;
}