You are here

function file_info_cache_clear in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.file_api.inc \file_info_cache_clear()
  2. 7 file_entity.file_api.inc \file_info_cache_clear()

Clears caches that are related to file entity.

Clears all cached configuration related to file types, formatters, and display settings.

6 calls to file_info_cache_clear()
file_display_new in ./file_entity.file_api.inc
Creates a new {file_display} object.
file_display_save in ./file_entity.file_api.inc
Saves a {file_display} object to the database.
file_entity_modules_disabled in ./file_entity.module
Implements hook_modules_disabled().
file_entity_modules_enabled in ./file_entity.module
Implements hook_modules_enabled().
file_type_delete in ./file_entity.file_api.inc
Deletes a file type from the database.

... See full list

File

./file_entity.file_api.inc, line 48
API extensions of Drupal core's file.inc.

Code

function file_info_cache_clear() {

  // Clear the CTools managed caches.
  ctools_include('export');
  ctools_export_load_object_reset('file_type');
  ctools_export_load_object_reset('file_display');

  // Clear the formatter type cache, managed by file_info_formatter_types().
  drupal_static_reset('file_info_formatter_types');

  // Clear file type caches.
  drupal_static_reset('file_type_get_names');
}