You are here

function tzfield_excluded_timezones in Time Zone Field 6

Fetch a default array of excluded timezones for use when creating a timezone field. See http://us.php.net/manual/en/timezones.others.php

1 call to tzfield_excluded_timezones()
tzfield_field_settings in ./tzfield.module
Implementation of hook_field_settings().

File

./tzfield.module, line 370
Defines a field type for storing timezones.

Code

function tzfield_excluded_timezones() {
  $timezones = tzfield_identifiers_list();
  return preg_grep(';^((Africa|America|Antarctica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific)/.*|UTC)$;', $timezones, PREG_GREP_INVERT);
}