You are here

function editor_css_alter in Editor 7

Implements hook_css_alter().

File

./editor.module, line 38
Allows rich text fields to be edited using WYSIWYG client-side editors.

Code

function editor_css_alter(&$css) {
  $bartik_style_css = drupal_get_path('theme', 'bartik') . '/css/style.css';

  // Add caption CSS to the Bartik theme.
  if (isset($css[$bartik_style_css])) {
    $bartik_caption_css = drupal_get_path('module', 'editor') . '/css/components/bartik.captions.css';
    $css[$bartik_caption_css] = $css[$bartik_style_css];
    $css[$bartik_caption_css]['data'] = $bartik_caption_css;
  }
}