You are here

function elfinder_yui_elfinder_editor_plugin in elFinder file manager 7

Same name and namespace in other branches
  1. 8.2 editors/yui/yui.inc \elfinder_yui_elfinder_editor_plugin()
  2. 6.2 editors/yui/yui.inc \elfinder_yui_elfinder_editor_plugin()
  3. 6 editors/yui/yui.inc \elfinder_yui_elfinder_editor_plugin()
  4. 7.3 editors/yui/yui.inc \elfinder_yui_elfinder_editor_plugin()
  5. 7.2 editors/yui/yui.inc \elfinder_yui_elfinder_editor_plugin()

Pseudo-hook for elfinder hook_wysiwyg_plugin implementation

File

editors/yui/yui.inc, line 12
YUI editor integration plugin

Code

function elfinder_yui_elfinder_editor_plugin($options) {
  drupal_add_js($options['plugin_url_base'] . '/yui.js');
  drupal_add_js(array(
    'elfinder' => array(
      'file_browser_url' => $options['elfinder_url'],
    ),
  ), 'setting');
  return array(
    'elfinder' => array(
      'extensions' => array(
        'elfinder' => t('elFinder'),
      ),
      'url' => $options['homepage_url'],
      'options' => array(),
      'load' => FALSE,
    ),
  );
}