You are here

function wysiwyg_get_editor_config in Wysiwyg 6

Same name and namespace in other branches
  1. 5.2 wysiwyg.module \wysiwyg_get_editor_config()
  2. 5 wysiwyg.module \wysiwyg_get_editor_config()
  3. 6.2 wysiwyg.module \wysiwyg_get_editor_config()
  4. 7.2 wysiwyg.module \wysiwyg_get_editor_config()

Return an array of initial editor settings for a Wysiwyg profile.

1 call to wysiwyg_get_editor_config()
wysiwyg_add_editor_settings in ./wysiwyg.module
Add editor settings for a given input format.

File

./wysiwyg.module, line 444
Integrate client-side editors with Drupal.

Code

function wysiwyg_get_editor_config($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);
  }
  return $settings;
}