function taxonomy_vocabulary_delete

Deletes a vocabulary.

Parameters

$vid: A vocabulary ID.

8 calls to taxonomy_vocabulary_delete()
EntityCrudHookTest::testTaxonomyVocabularyHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy vocabularies.
taxonomy_vocabulary_confirm_delete_submit in drupal/core/modules/taxonomy/taxonomy.admin.inc
Submit handler to delete a vocabulary after confirmation.
TermFieldMultipleVocabularyTest::testTaxonomyTermFieldMultipleVocabularies in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermFieldMultipleVocabularyTest.php
Tests term reference field and widget with multiple vocabularies.
TermFieldTest::testTaxonomyTermFieldWidgets in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermFieldTest.php
Test widgets.
VocabularyTest::testTaxonomyAdminNoVocabularies in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/VocabularyTest.php
Test the vocabulary overview with no vocabularies.

... See full list

File

drupal/core/modules/taxonomy/taxonomy.module, line 410
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_delete($vid) {
  taxonomy_vocabulary_delete_multiple(array(
    $vid,
  ));
}