You are here

function tzfield_options_list in Time Zone Field 7

Implements hook_options_list().

2 calls to tzfield_options_list()
tzfield_autocomplete in ./tzfield.module
Retrieve an array of autocomplete suggestions.
tzfield_field_validate in ./tzfield.module
Implements hook_field_validate().

File

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

Code

function tzfield_options_list($field) {
  return empty($field['settings']['exclude']) ? tzfield_identifiers_list() : array_diff_key(tzfield_identifiers_list(), $field['settings']['exclude']);
}