1 taxonomy.theme.inc theme_taxonomy_vocabulary_name($variables)

Returns HTML for the vocabulary human readable name, and its machine name.

Parameters

$variables: An associative array containing:

  • 'vocabulary': An object containing the human readable name, and the machine name of the vocabulary.

See also

taxonomy_overview_vocabularies()

Related topics

File

core/modules/taxonomy/taxonomy.theme.inc, line 18
Theme functions for the Taxonomy module.

Code

function theme_taxonomy_vocabulary_name($variables) {
  $vocabulary = $variables['vocabulary'];

  $output = '';
  $output .= '<div class="vocabulary-label">' . check_plain($vocabulary->name) . '</div>';
  $output .= '<div class="vocabulary-machine-name">(<span>' . check_plain($vocabulary->machine_name) . '</span>)</div>';
  return $output;
}