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