You are here

function ckeditor_module_path in CKEditor - WYSIWYG HTML editor 7

Generate module path of the CKEditor module.

Return value

Path of CKEditor module.

15 calls to ckeditor_module_path()
ckeditor_admin_global_profile_form in includes/ckeditor.admin.inc
Form builder for a global profile
ckeditor_admin_profile_form in includes/ckeditor.admin.inc
Form builder for a profile
ckeditor_ckeditor_plugin in ./ckeditor.ckeditor.inc
Implements hook_ckeditor_plugin().
ckeditor_help_delegate in includes/ckeditor.page.inc
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
ckeditor_load_by_field in includes/ckeditor.lib.inc
Load CKEditor for field ID

... See full list

File

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

Code

function ckeditor_module_path($mode = 'relative') {
  switch ($mode) {
    default:
    case 'relative':
      return ckeditor_base_path('relative') . '/' . drupal_get_path('module', 'ckeditor');
    case 'local':
      return ckeditor_base_path('local') . '/' . drupal_get_path('module', 'ckeditor');
    case 'url':
      return drupal_get_path('module', 'ckeditor');
  }
}