function node_type_cache_reset

Clears the node type cache.

3 calls to node_type_cache_reset()
node_entity_bundle_info in drupal/core/modules/node/node.module
Implements hook_entity_bundle_info().
node_type_delete in drupal/core/modules/node/node.module
Deletes a node type from the database.
node_type_save in drupal/core/modules/node/node.module
Saves a node type to the database.

File

drupal/core/modules/node/node.module, line 757
The core module that allows content to be submitted to the site.

Code

function node_type_cache_reset() {
  cache()
    ->deleteTags(array(
    'node_types' => TRUE,
  ));
  drupal_static_reset('_node_types_build');
}