Index: modules/filter/filter.module =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v retrieving revision 1.349 diff -u -p -r1.349 filter.module --- modules/filter/filter.module 29 Sep 2010 14:58:24 -0000 1.349 +++ modules/filter/filter.module 29 Sep 2010 15:52:37 -0000 @@ -385,6 +385,10 @@ function filter_formats($account = NULL) ->execute() ->fetchAllAssoc('format'); + // Allow modules to alter the list of formats; e.g., to load formats + // exported into code. + drupal_alter('filter_formats', $formats['all']) + cache_set("filter_formats:{$language->language}", $formats['all']); } }