Same name and namespace in other branches
  1. 8.9.x core/modules/filter/filter.module \filter_formats_reset()
  2. 9 core/modules/filter/filter.module \filter_formats_reset()

Resets the text format caches.

See also

filter_formats()

7 calls to filter_formats_reset()
FilterDefaultFormatTestCase::resetFilterCaches in modules/filter/filter.test
Rebuilds text format and permission caches in the thread running the tests.
FilterFormatAccessTestCase::resetFilterCaches in modules/filter/filter.test
Rebuilds text format and permission caches in the thread running the tests.
FilterSettingsTestCase::testFilterDefaults in modules/filter/filter.test
Tests explicit and implicit default settings for filters.
filter_admin_overview_submit in modules/filter/filter.admin.inc
Form submission handler for filter_admin_overview().
filter_format_disable in modules/filter/filter.module
Disables a text format.

... See full list

File

modules/filter/filter.module, line 459
Framework for handling the filtering of content.

Code

function filter_formats_reset() {
  cache_clear_all('filter_formats', 'cache', TRUE);
  cache_clear_all('filter_list_format', 'cache', TRUE);
  drupal_static_reset('filter_list_format');
  drupal_static_reset('filter_formats');
}