You are here

function _wysiwyg_yui_plugin_meta in Wysiwyg 6.2

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

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

1 string reference to '_wysiwyg_yui_plugin_meta'
wysiwyg_yui_editor in editors/yui.inc
Plugin implementation of hook_editor().

File

editors/yui.inc, line 328
Editor integration functions for YUI editor.

Code

function _wysiwyg_yui_plugin_meta($editor, $plugin) {
  $meta = NULL;
  if (!empty($plugin['load'])) {

    // Add path for native external plugins; internal ones are loaded
    // automatically.
    if (empty($plugin['internal']) && isset($plugin['path'])) {
      $meta = base_path() . $plugin['path'];
    }
  }
  return $meta;
}