function filter_formats_reset

Same name in other branches
  1. 9 core/modules/filter/filter.module \filter_formats_reset()
  2. 8.9.x core/modules/filter/filter.module \filter_formats_reset()
  3. 10 core/modules/filter/filter.module \filter_formats_reset()
  4. 11.x 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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.