You are here

function taxonomy_vocabulary_static_reset in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/taxonomy.module \taxonomy_vocabulary_static_reset()
  2. 9 core/modules/taxonomy/taxonomy.module \taxonomy_vocabulary_static_reset()

Clear all static cache variables for vocabularies.

Parameters

$ids: An array of ids to reset in entity controller cache.

2 calls to taxonomy_vocabulary_static_reset()
taxonomy_vocabulary_delete in modules/taxonomy/taxonomy.module
Deletes a vocabulary.
taxonomy_vocabulary_save in modules/taxonomy/taxonomy.module
Saves a vocabulary.

File

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

Code

function taxonomy_vocabulary_static_reset($ids = NULL) {
  drupal_static_reset('taxonomy_vocabulary_get_names');
  entity_get_controller('taxonomy_vocabulary')
    ->resetCache($ids);
}