You are here

function editor_init in Editor 7

Same name and namespace in other branches
  1. 5 editor.module \editor_init()

Implements hook_init().

File

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

Code

function editor_init() {
  $path = drupal_get_path('module', 'editor');

  // Add the CSS for this module. These aren't in editor.info, because they
  // need to be in the CSS_SYSTEM group rather than the CSS_DEFAULT group.
  drupal_add_css($path . '/css/components/align.module.css', array(
    'group' => CSS_SYSTEM,
    'every_page' => TRUE,
  ));
  drupal_add_css($path . '/css/components/resize.module.css', array(
    'group' => CSS_SYSTEM,
    'every_page' => TRUE,
  ));
  drupal_add_css($path . '/css/filter/filter.caption.css', array(
    'group' => CSS_SYSTEM,
    'every_page' => TRUE,
  ));
}