You are here

function content_alter_db_cleanup in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 includes/content.admin.inc \content_alter_db_cleanup()
  2. 6.2 includes/content.admin.inc \content_alter_db_cleanup()

Helper function for handling cleanup operations when schema changes are made.

1 call to content_alter_db_cleanup()
content_alter_db in includes/content.admin.inc
Perform adds, alters, and drops as needed to synchronize the database with new field definitions.

File

includes/content.admin.inc, line 1203
Administrative interface for content type creation.

Code

function content_alter_db_cleanup($ret) {

  // Rebuild the whole database schema.
  // TODO : this could be optimized. We don't need to rebuild in *every case*...
  // Or do we? This affects the schema and menu and may have unfortunate
  // delayed effects if we don't clear everything out at this point.
  content_clear_type_cache(TRUE);

  // TODO : debugging stuff - should be removed
  if (module_exists('devel')) {

    //dsm($ret);
  }
  return $ret;
}