You are here

function tzfield_identifiers_list in Time Zone Field 6

Same name and namespace in other branches
  1. 7 tzfield.module \tzfield_identifiers_list()

Cache the timezone identifiers list as a static variable.

3 calls to tzfield_identifiers_list()
tzfield_excluded_timezones in ./tzfield.module
Fetch a default array of excluded timezones for use when creating a timezone field. See http://us.php.net/manual/en/timezones.others.php
tzfield_field_settings in ./tzfield.module
Implementation of hook_field_settings().
tzfield_timezones in ./tzfield.module
Fetch an array of all candidate timezones, for use in presenting the selection form to the user.

File

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

Code

function tzfield_identifiers_list() {
  static $list;
  if (empty($list)) {
    $list = drupal_map_assoc(timezone_identifiers_list());
  }
  return $list;
}