function elfinder_ckeditor_settings_alter in elFinder file manager 7.2
Same name and namespace in other branches
- 7.3 elfinder.module \elfinder_ckeditor_settings_alter()
Implements hook_ckeditor_settings_alter().
File
- ./
elfinder.module, line 1324
Code
function elfinder_ckeditor_settings_alter(&$settings, $conf) {
$width = variable_get('elfinder_settings_misc_manager_width', '');
if (!$width) {
$width = ELFINDER_POPUP_WIDTH;
}
$height = variable_get('elfinder_settings_misc_manager_height', '');
if (!$height) {
$height = ELFINDER_POPUP_HEIGHT;
}
$settings['js_conf']['filebrowserWindowWidth'] = $width;
$settings['js_conf']['filebrowserWindowHeight'] = $height;
}