1 taxonomy.module taxonomy_vocabulary_save(TaxonomyVocabulary $vocabulary)

Saves a new or updated taxonomy vocabulary.

Parameters

TaxonomyVocabulary $vocabulary: The taxonomy vocabulary entity to be saved.

Return value

int: Either SAVED_NEW or SAVED_UPDATED depending on the operation performed.

File

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

Code

function taxonomy_vocabulary_save(TaxonomyVocabulary $vocabulary) {
  return $vocabulary->save();
}