You are here

function date_api_init in Date 6.2

Same name and namespace in other branches
  1. 6 date_api.module \date_api_init()
  2. 7 date_api/date_api.module \date_api_init()

Implementation of hook_init().

File

./date_api.module, line 43
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_api_init() {
  if (function_exists('date_default_timezone_set')) {
    date_default_timezone_set(date_default_timezone_name());
  }
  drupal_add_css(drupal_get_path('module', 'date_api') . '/date.css');
}