function calendar_init in Calendar 7
Same name and namespace in other branches
- 6.2 calendar.module \calendar_init()
- 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');
module_load_include('inc', 'calendar', 'theme/theme.inc');
}