You are here

function ckeditor_base_path in CKEditor - WYSIWYG HTML editor 7

Generate base path of the Drupal installation.

Return value

Path of the Drupal installation.

8 calls to ckeditor_base_path()
ckeditor_admin_global_profile_form in includes/ckeditor.admin.inc
Form builder for a global profile
ckeditor_library_path in ./ckeditor.module
Generate library path of the Drupal installation.
ckeditor_module_path in ./ckeditor.module
Generate module path of the CKEditor module.
ckeditor_path in ./ckeditor.module
Read the CKEditor path from the Global profile.
ckeditor_plugins_path in ./ckeditor.module
Read the CKEditor plugins path from the Global profile.

... See full list

File

./ckeditor.module, line 368
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_base_path($mode = 'relative') {
  if ($mode == 'local') {
    return $cke_base_local_path = '.';
  }
  return rtrim(base_path(), '/');
}