You are here

function tzfield_identifiers_list in Time Zone Field 7

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

Cache the time zone identifiers list as a static variable.

3 calls to tzfield_identifiers_list()
tzfield_field_info in ./tzfield.module
Implements hook_field_info().
tzfield_field_settings_form in ./tzfield.module
Implements hook_field_settings_form().
tzfield_options_list in ./tzfield.module
Implements hook_options_list().

File

./tzfield.module, line 187
Defines a time zone field type.

Code

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