function taxonomy_vocabulary_static_reset

Same name in other branches
  1. 9 core/modules/taxonomy/taxonomy.module \taxonomy_vocabulary_static_reset()
  2. 8.9.x 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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.