You are here

function countries_invoke_additional_countries_alter in Countries 8

Same name and namespace in other branches
  1. 7.2 countries.module \countries_invoke_additional_countries_alter()

Invoke hook_countries_alter() while bypassing the Countries module.

2 calls to countries_invoke_additional_countries_alter()
countries_allowed_values in ./countries.fields.inc
Returns a set of valid countries of a countries field.
_countries_country_expand in ./countries.elements.inc
Our process callback to expand the country FAPI element.

File

./countries.module, line 658
Defines the field and entity information for countries.

Code

function countries_invoke_additional_countries_alter(&$countries) {
  foreach (module_implements('countries_alter') as $module) {
    if ($module != 'countries') {
      $func = $module . '_countries_alter';
      $func($countries);
    }
  }
}