You are here

function ckeditor_plugins_render in CKEditor - WYSIWYG HTML editor 7

Same name and namespace in other branches
  1. 6 includes/ckeditor.lib.inc \ckeditor_plugins_render()

Render CKEditor plugins path

2 calls to ckeditor_plugins_render()
ckeditor_load_plugins in includes/ckeditor.lib.inc
List of CKEditor plugins.
ckeditor_profile_settings_compile in includes/ckeditor.lib.inc
Compile settings of profile

File

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

Code

function ckeditor_plugins_render($plugins) {
  $render = array();
  $render["%base_path%"] = ckeditor_base_path('relative') . '/';
  $render["%editor_path%"] = ckeditor_path('relative') . '/';
  $render["%module_path%"] = ckeditor_module_path('relative') . '/';
  $render["%plugin_dir%"] = $render["%module_path%"] . 'plugins/';
  $render["%plugin_dir_extra%"] = ckeditor_plugins_path('relative') . '/';
  foreach ((array) $plugins as $i => $plugin) {
    $plugins[$i]['path'] = str_replace(array_keys($render), array_values($render), $plugin['path']);
  }
  return $plugins;
}