W3cubDocs

/Drupal 8

function hook_filter_format_disable

hook_filter_format_disable($format)

Perform actions when a text format has been disabled.

Parameters

\Drupal\filter\FilterFormatInterface $format: The format object of the format being disabled.

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/modules/filter/filter.api.php, line 54
Hooks provided by the Filter module.

Code

function hook_filter_format_disable($format) {
  mymodule_cache_rebuild();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!filter!filter.api.php/function/hook_filter_format_disable/8.1.x