1 node.install node_uninstall()

Implements hook_uninstall().

File

core/modules/node/node.install, line 336
Install, update and uninstall functions for the node module.

Code

function node_uninstall() {
  // Delete node types.
  $names = config_get_names_with_prefix('node.type');
  foreach ($names as $config_name) {
    $config = config($config_name);
    $config->delete();
  }

  // Delete remaining general module settings.
  state_del('node_access_needs_rebuild');
  state_del('node_cron_last');
}