You are here

function _wysiwyg_tinymce_plugin_meta in Wysiwyg 7.2

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

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

1 string reference to '_wysiwyg_tinymce_plugin_meta'
wysiwyg_tinymce_editor in editors/tinymce.inc
Plugin implementation of hook_editor().

File

editors/tinymce.inc, line 1103
Editor integration functions for TinyMCE.

Code

function _wysiwyg_tinymce_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['filename'])) {
      $meta = base_path() . $plugin['path'] . '/' . $plugin['filename'];
    }
  }
  return $meta;
}