Index: modules/filter/filter.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v
retrieving revision 1.354
diff -u -p -r1.354 filter.module
--- modules/filter/filter.module	20 Oct 2010 01:15:58 -0000	1.354
+++ modules/filter/filter.module	22 Oct 2010 13:19:09 -0000
@@ -393,6 +393,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']);
     }
   }
@@ -651,6 +655,10 @@ function filter_list_format($format_id) 
       foreach ($result as $record) {
         $filters['all'][$record->format][$record->name] = $record;
       }
+      // Allow modules to alter the filters of all formats; e.g., to complete
+      // formats exported into code.
+      drupal_alter('filter_list_format', $filters['all']);
+
       cache_set('filter_list_format', $filters['all']);
     }
   }
