function _ckeditor_load_methods in CKEditor - WYSIWYG HTML editor 7
Same name and namespace in other branches
- 6 includes/ckeditor.admin.inc \_ckeditor_load_methods()
2 calls to _ckeditor_load_methods()
- ckeditor_admin_profile_form in includes/
ckeditor.admin.inc - Form builder for a profile
- ckeditor_admin_profile_form_validate in includes/
ckeditor.admin.inc - Form validation for a profile.
File
- includes/
ckeditor.admin.inc, line 1838 - CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
Code
function _ckeditor_load_methods() {
$result = array(
'ckeditor.js' => 'ckeditor.js',
);
$ckeditor_local_path = ckeditor_path('local');
if ($ckeditor_local_path == '<URL>') {
return $result;
}
if (file_exists($ckeditor_local_path . '/ckeditor_basic.js')) {
$result['ckeditor_basic.js'] = 'ckeditor_basic.js';
}
if (file_exists($ckeditor_local_path . '/ckeditor_source.js')) {
$result['ckeditor_source.js'] = 'ckeditor_source.js (' . t('for developers only') . ')';
}
return $result;
}