function node_types_rebuild

7.x node.module node_types_rebuild()
6.x node.module node_types_rebuild()

Updates the database cache of node types.

All new module-defined node types are saved to the database via a call to node_type_save(), and obsolete ones are deleted via a call to node_type_delete(). See _node_types_build() for an explanation of the new and obsolete types.

See also

_node_types_build()

8 calls to node_types_rebuild()
blog_install in drupal-7.x/modules/blog/blog.install
Implements hook_install().
comment_modules_enabled in drupal-7.x/modules/comment/comment.install
Implements hook_modules_enabled().
DrupalWebTestCase::drupalCreateContentType in drupal-7.x/modules/simpletest/drupal_web_test_case.php
Creates a custom content type based on default settings.
drupal_flush_all_caches in drupal-7.x/includes/common.inc
Flushes all cached data on the site.
forum_enable in drupal-7.x/modules/forum/forum.install
Implements hook_enable().

... See full list

File

drupal-7.x/modules/node/node.module, line 475
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_types_rebuild() {
  _node_types_build(TRUE);
}