function taxonomy_vocabulary_add

Page callback: provides the vocabulary creation form.

1 string reference to 'taxonomy_vocabulary_add'
taxonomy_menu in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_menu().

File

drupal/core/modules/taxonomy/taxonomy.admin.inc, line 119
Administrative page callbacks for the taxonomy module.

Code

function taxonomy_vocabulary_add() {
  $vocabulary = entity_create('taxonomy_vocabulary', array(
    // Default the new vocabulary to the site's default language. This is the
    // most likely default value until we have better flexible settings.
    'langcode' => language_default()->langcode,
  ));
  return entity_get_form($vocabulary);
}