function node_type_cache_reset

7.x node.module node_type_cache_reset()

Clears the node type cache.

6 calls to node_type_cache_reset()
node_menu in drupal/modules/node/node.module
Implements hook_menu().
node_type_delete in drupal/modules/node/node.module
Deletes a node type from the database.
node_type_save in drupal/modules/node/node.module
Saves a node type to the database.
node_update_7004 in drupal/modules/node/node.install
Extend the existing default preview and teaser settings to all node types.
node_update_7006 in drupal/modules/node/node.install
Convert body and teaser from node properties to fields, and migrate status/comment/promote and sticky columns to the {node_revision} table.

... See full list

File

drupal/modules/node/node.module, line 783
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function node_type_cache_reset() {
  cache_clear_all('node_types:', 'cache', TRUE);
  drupal_static_reset('_node_types_build');
}