You are here

function taxonomy_admin_vocabulary_title_callback in Drupal 7

Returns the sanitized name of a vocabulary.

Deprecated. This function was previously used as a menu item title callback but has been replaced by using entity_label() (which does not sanitize the title, since the menu system does that automatically). In Drupal 7, use that function for title callbacks, and call check_plain() directly if you need a sanitized title.

File

modules/taxonomy/taxonomy.module, line 388
Enables the organization of content into categories.

Code

function taxonomy_admin_vocabulary_title_callback($vocabulary) {
  return check_plain($vocabulary->name);
}