function 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()

7 calls to node_types_rebuild()
comment_modules_enabled in drupal/core/modules/comment/comment.install
Implements hook_modules_enabled().
forum_enable in drupal/core/modules/forum/forum.install
Implements hook_enable().
NodeTypeTest::testNodeTypeStatus in drupal/core/modules/node/lib/Drupal/node/Tests/NodeTypeTest.php
Tests that node_types_rebuild() correctly handles the 'disabled' flag.
node_rebuild in drupal/core/modules/node/node.module
Implements hook_rebuild().
node_type_delete_confirm_submit in drupal/core/modules/node/content_types.inc
Form submission handler for node_type_delete_confirm().

... See full list

File

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

Code

function node_types_rebuild() {
  _node_types_build(TRUE);
}