You are here

function countries_allowed_values in Countries 8

Same name and namespace in other branches
  1. 7.2 countries.fields.inc \countries_allowed_values()

Returns a set of valid countries of a countries field.

1 string reference to 'countries_allowed_values'
countries_options_list in ./countries.fields.inc
Implements hook_options_list().

File

./countries.fields.inc, line 404
All field related code.

Code

function countries_allowed_values($field) {
  $countries = countries_get_countries('name', $field['#filters']);

  // Allow other modules to update this list.
  countries_invoke_additional_countries_alter($countries);
  return $countries;
}