You are here

function content_alter_db_cleanup in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6 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 1651
Administrative interface for content type creation.

Code

function content_alter_db_cleanup() {

  // 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);
}