You are here

function devel_generate_delete_vocabularies in Devel 7

Deletes all vocabularies.

2 calls to devel_generate_delete_vocabularies()
devel_generate_vocab_form_submit in devel_generate/devel_generate.module
FormAPI submission to generate taxonomy vocabularies.
drush_devel_generate_vocabs in devel_generate/devel_generate.drush.inc
Command callback. Generate a number of vocabularies.

File

devel_generate/devel_generate.inc, line 326

Code

function devel_generate_delete_vocabularies() {
  foreach (taxonomy_vocabulary_load_multiple(FALSE) as $vid => $vocab) {
    taxonomy_vocabulary_delete($vid);
  }
}