diff --git a/core/modules/filter/filter.api.php b/core/modules/filter/filter.api.php index 2f74172..8d6aa01 100644 --- a/core/modules/filter/filter.api.php +++ b/core/modules/filter/filter.api.php @@ -24,43 +24,10 @@ function hook_filter_info_alter(&$info) { } /** - * Perform actions when a new text format has been created. - * - * @param $format - * The format object of the format being updated. - * - * @see hook_filter_format_update() - * @see hook_filter_format_disable() - */ -function hook_filter_format_insert($format) { - mymodule_cache_rebuild(); -} - -/** - * Perform actions when a text format has been updated. - * - * This hook allows modules to act when a text format has been updated in any - * way. For example, when filters have been reconfigured, disabled, or - * re-arranged in the text format. - * - * @param $format - * The format object of the format being updated. - * - * @see hook_filter_format_insert() - * @see hook_filter_format_disable() - */ -function hook_filter_format_update($format) { - mymodule_cache_rebuild(); -} - -/** * Perform actions when a text format has been disabled. * * @param $format * The format object of the format being disabled. - * - * @see hook_filter_format_insert() - * @see hook_filter_format_update() */ function hook_filter_format_disable($format) { mymodule_cache_rebuild(); diff --git a/core/modules/filter/filter.install b/core/modules/filter/filter.install index 4dff8be..af2e6ae 100644 --- a/core/modules/filter/filter.install +++ b/core/modules/filter/filter.install @@ -3,13 +3,19 @@ /** * @file * Install, update, and uninstall functions for the Filter module. + * + * All sites require at least one text format (the fallback format) that all + * users have access to, so add it here. We initialize it as a simple, safe + * plain text format with very basic formatting, but it can be modified by + * installation profiles to have other properties. + * + * @see core/modules/filter/config/filter.format.plain_text.yml */ /** * Implements hook_schema(). */ function filter_schema() { - $schema['cache_filter'] = drupal_get_schema_unprocessed('system', 'cache'); $schema['cache_filter']['description'] = 'Cache table for the Filter module to store already filtered pieces of text, identified by text format and hash of the text.'; @@ -17,17 +23,6 @@ function filter_schema() { } /** - * Implements hook_install(). - */ -function filter_install() { - // All sites require at least one text format (the fallback format) that all - // users have access to, so add it here. We initialize it as a simple, safe - // plain text format with very basic formatting, but it can be modified by - // installation profiles to have other properties. - // See core/modules/filter/config/filter.format.plain_text.yml. -} - -/** * @addtogroup updates-7.x-to-8.x * @{ */