function timezone_detect_init in Timezone Detect 6
Implements hook_init().
File
- ./
timezone_detect.module, line 48 - Module provides automatic timezone detection via javascript.
Code
function timezone_detect_init() {
// Include the javascript only when appropriate.
if (isset($_SESSION['timezone_detect']['update_timezone']) || !user_is_anonymous() && variable_get('timezone_detect_mode', TIMEZONE_DETECT_MODE_DEFAULT) === TIMEZONE_DETECT_MODE_ALWAYS) {
timezone_detect_add_js();
}
}