You are here

function content_clear_type_cache in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 content.module \content_clear_type_cache()
  2. 6.3 content.module \content_clear_type_cache()
  3. 6.2 content.module \content_clear_type_cache()

Clear the cache of content_types; called in several places when content information is changed.

20 calls to content_clear_type_cache()
ContentCrudTestCase::acquireContentTypes in tests/content.crud.test
Creates a number of content types with predictable names (simpletest_t1 ... simpletest_tN) These content types can later be accessed via $this->content_types[0 ... N-1]
content_admin_display_overview_form_submit in includes/content.admin.inc
Submit handler for the display overview form.
content_admin_field_overview_form in includes/content.admin.inc
Menu callback; listing of fields for a content type.
content_admin_field_overview_form_submit in includes/content.admin.inc
content_alter_db_cleanup in includes/content.admin.inc
Helper function for handling cleanup operations when schema changes are made.

... See full list

File

./content.module, line 1351
Allows administrators to associate custom fields to content types.

Code

function content_clear_type_cache($rebuild_schema = FALSE) {
  cache_clear_all('*', content_cache_tablename(), TRUE);
  _content_type_info(TRUE);

  // Refresh the schema to pick up new information.
  if ($rebuild_schema) {
    $schema = drupal_get_schema(NULL, TRUE);
  }

  //  if (module_exists('views')) {
  //    // Needed because this can be called from .install files
  //    module_load_include('module', 'views');
  //    views_invalidate_cache();
  //  }
}