Same name and namespace in other branches
  1. 7.x 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()
FilterAdminTest::testFilterAdmin in core/modules/filter/tests/src/Functional/FilterAdminTest.php
Tests filter administration functionality.
FilterDefaultFormatTest::resetFilterCaches in core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
Rebuilds text format and permission caches in the thread running the tests.
FilterFormat::disable in core/modules/filter/src/Entity/FilterFormat.php
Disables the configuration entity.
FilterFormat::postSave in core/modules/filter/src/Entity/FilterFormat.php
Acts on a saved entity before the insert or update hook is invoked.
FilterFormatAccessTest::resetFilterCaches in core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
Rebuilds text format and permission caches in the thread running the tests.

... See full list

File

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

Code

function filter_formats_reset() {
  drupal_static_reset('filter_formats');
}