You are here

function elfinder_elfinder_js_settings in elFinder file manager 7

Same name and namespace in other branches
  1. 6 modules/elfinder_bueditor/elfinder_bueditor.module \elfinder_elfinder_js_settings()

BUEditor support for elFinder Copyright (c) 2011, Alexey Sukhotin

File

modules/elfinder_bueditor/elfinder_bueditor.module, line 9

Code

function elfinder_elfinder_js_settings($settings) {
  if (preg_match('/(bueditor|bue)/', $settings['editorApp'])) {
    drupal_add_js(drupal_get_path('module', 'elfinder') . '/editors/bueditor/bueditor.callback.js');
    $settings['editorCallback'] = 'elfinder_bue_callback';
  }
  return $settings;
}