function hook_filter_format_insert

Perform actions when a new text format has been created.

Parameters

$format: The format object of the format being updated.

See also

hook_filter_format_update()

hook_filter_format_disable()

Related topics

2 functions implement hook_filter_format_insert()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

FilterTestHooks::filterFormatInsert in core/modules/filter/tests/filter_test/src/Hook/FilterTestHooks.php
Implements hook_ENTITY_TYPE_insert().
filter_test_filter_format_insert in modules/simpletest/tests/filter_test.module
Implements hook_filter_format_insert().
1 invocation of hook_filter_format_insert()
filter_format_save in modules/filter/filter.module
Saves a text format object to the database.

File

modules/filter/filter.api.php, line 287

Code

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

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