You are here

function countries_i18n_country_update in Countries 8

Same name and namespace in other branches
  1. 7.2 modules/countries_i18n/countries_i18n.module \countries_i18n_country_update()

Implements hook_country_update().

This hooks into other modules that the countries module integrates with.

File

modules/countries_i18n/countries_i18n.module, line 70
Provides translation for countries module.

Code

function countries_i18n_country_update($country) {
  if (isset($country->original->iso2) && $country->original->iso2 != $country->iso2) {
    i18n_string_update_context("countries:{$country->original_iso2}:*", "countries:{$country->iso2}:*");
  }
  i18n_string_object_update('country', $country);
}