function _ckeditor_theme_css in CKEditor for WYSIWYG Module 7
Same name and namespace in other branches
- 8 ckeditor.module \_ckeditor_theme_css()
Retrieves the default theme's CKEditor stylesheets defined in the .info file.
Themes may specify iframe-specific CSS files for use with CKEditor by including a "ckeditor_stylesheets" key in the theme .info file.
ckeditor_stylesheets[] = css / ckeditor - iframe . css;
1 call to _ckeditor_theme_css()
- ckeditor_add_settings in ./
ckeditor.module - Editor JS settings callback; Add Aloha settings to the page for a format.
File
- ./
ckeditor.module, line 467
Code
function _ckeditor_theme_css($theme = NULL) {
$css = array();
if (!isset($theme)) {
$theme = variable_get('theme_default');
}
if ($theme_path = drupal_get_path('theme', $theme)) {
$info = system_get_info('theme', $theme);
if (isset($info['ckeditor_stylesheets'])) {
$css = $info['ckeditor_stylesheets'];
foreach ($css as $key => $path) {
$css[$key] = $theme_path . '/' . $path;
}
}
if (isset($info['base theme'])) {
$css = array_merge($css, _ckeditor_theme_css($info['base theme']));
}
}
return $css;
}