You are here

function calendar_init in Calendar 6.2

Same name and namespace in other branches
  1. 7 calendar.module \calendar_init()
  2. 7.2 calendar.module \calendar_init()

File

./calendar.module, line 31
Adds calendar filtering and displays to Views.

Code

function calendar_init() {

  // If the multiday module is enabled, let it control the css.
  if (module_exists('calendar_multiday') || substr($_GET['q'], 0, 24) == 'admin/build/modules/list') {
    return;
  }

  // The css for Farbtastic color picker, painless to add it here
  // even though it isn't needed everywhere.
  drupal_add_css('misc/farbtastic/farbtastic.css');
  drupal_add_css(drupal_get_path('module', 'calendar') . '/calendar.css');
  require_once './' . drupal_get_path('module', 'calendar') . '/theme/theme.inc';
}