You are here

function _ckeditor_requirements_ckfinder_filebrowser_enabled in CKEditor - WYSIWYG HTML editor 7

Same name and namespace in other branches
  1. 6 ckeditor.install \_ckeditor_requirements_ckfinder_filebrowser_enabled()

Checks if any profile requires an explicit setting of $cookie_domain in settings.php.

%cookie_domain is required when the internal file browser or quick upload is used.

This function is used by ckeditor_requirements().

Return value

boolean True if any profile requires $cookie_domain.

1 call to _ckeditor_requirements_ckfinder_filebrowser_enabled()
ckeditor_requirements in ./ckeditor.install
Implementation of hook_requirements().

File

./ckeditor.install, line 384

Code

function _ckeditor_requirements_ckfinder_filebrowser_enabled() {
  module_load_include('module', 'ckeditor');
  $profiles = ckeditor_profile_load();
  foreach ($profiles as $profile) {
    if (isset($profile->settings['filebrowser']) && $profile->settings['filebrowser'] == 'ckfinder') {
      return $profile->name;
    }
  }
  return FALSE;
}