Index: wysiwyg.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/wysiwyg.module,v
retrieving revision 1.33.2.7
diff -u -p -r1.33.2.7 wysiwyg.module
--- wysiwyg.module	6 Feb 2010 13:11:51 -0000	1.33.2.7
+++ wysiwyg.module	7 Feb 2010 15:05:38 -0000
@@ -531,10 +531,18 @@ function wysiwyg_get_plugins($editor_nam
  * Return an array of initial editor settings for a Wysiwyg profile.
  */
 function wysiwyg_get_editor_config($profile, $theme) {
+  // Allow other modules to alter the profile... err, isn't this a bit sparse here?
+  // ...why not in wysiwyg_profile_load() - or do you actually want to alter the theme?
+  // (in which case we should flip the arguments)
+  drupal_alter('wysiwyg_profile', $profile, $theme);
   $editor = wysiwyg_get_editor($profile->editor);
   $settings = array();
   if (!empty($editor['settings callback']) && function_exists($editor['settings callback'])) {
     $settings = $editor['settings callback']($editor, $profile->settings, $theme);
+
+    // Allow other modules to alter the editor settings for this format.
+    $context = array('editor' => $editor, 'profile' => $profile, 'theme' => $theme);
+    drupal_alter('wysiwyg_editor_settings', $settings, $context);
   }
   return $settings;
 }
