You are here

function _wysiwyg_fckeditor_plugin_settings in Wysiwyg 7.2

Same name and namespace in other branches
  1. 6.2 editors/fckeditor.inc \_wysiwyg_fckeditor_plugin_settings()

Build a JS settings array for native external plugins.

1 string reference to '_wysiwyg_fckeditor_plugin_settings'
wysiwyg_fckeditor_editor in editors/fckeditor.inc
Plugin implementation of hook_editor().

File

editors/fckeditor.inc, line 263
Editor integration functions for FCKeditor.

Code

function _wysiwyg_fckeditor_plugin_settings($editor, $profile, $plugins) {
  $settings = array();
  foreach ($plugins as $name => $plugin) {
    if (!empty($plugin['load'])) {

      // Just need a list of all enabled plugins for each instance.
      $settings[$name] = TRUE;
    }
  }
  return $settings;
}