function taxonomy_admin_vocabulary_title_callback

taxonomy_admin_vocabulary_title_callback($vocabulary)

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 386
Enables the organization of content into categories.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_admin_vocabulary_title_callback/7.x