Index: modules/filter/filter.api.php =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.api.php,v retrieving revision 1.21 diff -u -p -r1.21 filter.api.php --- modules/filter/filter.api.php 18 Sep 2010 02:18:35 -0000 1.21 +++ modules/filter/filter.api.php 25 Oct 2010 22:20:41 -0000 @@ -185,6 +185,52 @@ function hook_filter_info() { } /** + * Perform alterations on text formats definitions. + * + * @param $formats + * Array of of all existent text formats. + * + * @see filter_formats() + */ +function hook_filter_formats_alter(&$formats) { + $filters['custom_format'] = array( + 'title' => t('Custom text format'), + 'description' => t('Allows you to restrict the HTML tags the user can use.'), + 'process callback' => '_custom_callback', + 'settings callback' => '_custom_settings_callback', + 'default settings' => array( + 'allowed_html' => '