filter.api.php 697 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<?php

/**
 * @file
 * Hooks provided by the Filter module.
 */

/**
 * @addtogroup hooks
 * @{
 */

13 14 15 16
/**
 * Perform alterations on filter definitions.
 *
 * @param $info
17
 *   Array of information on filters exposed by filter plugins.
18 19
 */
function hook_filter_info_alter(&$info) {
20
  // Alter the default settings of the URL filter provided by core.
21
  $info['filter_url']['default_settings'] = array(
22 23
    'filter_url_length' => 100,
  );
24 25
}

26
/**
27
 * Perform actions when a text format has been disabled.
28 29
 *
 * @param $format
30
 *   The format object of the format being disabled.
31
 */
32 33
function hook_filter_format_disable($format) {
  mymodule_cache_rebuild();
34 35
}

36 37 38
/**
 * @} End of "addtogroup hooks".
 */