You are here

function content_clear_type_cache in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 5 content.module \content_clear_type_cache()
  2. 6 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.

28 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_alter_db_cleanup in includes/content.admin.inc
Helper function for handling cleanup operations when schema changes are made.
content_copy_import_form_submit in modules/content_copy/content_copy.module
Submit handler for import form. For each submitted field: 1) add new field to the database 2) execute the imported field macro to update the settings to the imported values
content_disable in ./content.install
Implementation of hook_disable().
content_display_overview_form_submit in includes/content.admin.inc
Submit handler for the display overview form.

... See full list

File

./content.module, line 1615
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();
  }
}