You are here

function timezone_detect_set_timezone_access in Timezone Detect 6

Access callback for timezone_detect_set_timezone().

1 string reference to 'timezone_detect_set_timezone_access'
timezone_detect_menu in ./timezone_detect.module
Implements hook_menu().

File

./timezone_detect.module, line 58
Module provides automatic timezone detection via javascript.

Code

function timezone_detect_set_timezone_access() {
  global $user;

  // Don't let anonymous users access.
  if (empty($user->uid)) {
    return FALSE;
  }
  return TRUE;
}