You are here

function _wysiwyg_fckeditor_plugin_meta in Wysiwyg 6.2

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

Build a JS settings array with global metadata for native external plugins.

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

File

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

Code

function _wysiwyg_fckeditor_plugin_meta($editor, $plugin) {
  $meta = array();

  // Add path for native external plugins; internal ones do not need a path.
  if (empty($plugin['internal']) && isset($plugin['path'])) {

    // All native FCKeditor plugins use the filename fckplugin.js.
    $meta['path'] = base_path() . $plugin['path'] . '/';
  }
  if (!empty($plugin['languages'])) {
    $meta['languages'] = $plugin['languages'];
  }
  return $meta;
}