function countries_get_country in Countries 7
Same name and namespace in other branches
- 8 countries.module \countries_get_country()
- 7.2 countries.module \countries_get_country()
Helper function to load a country by it's primary key.
3 calls to countries_get_country()
- countries_country_lookup in ./
countries.module - A helper function to find a country based on any country property.
- countries_field_load in ./
countries.module - Implement hook_field_load().
- countries_field_sanitize in ./
countries.module - Implement hook_field_sanitize().
File
- ./
countries.module, line 284
Code
function countries_get_country($iso2, $property = 'all') {
$countries = countries_get_countries($property);
return isset($countries[$iso2]) ? $countries[$iso2] : FALSE;
}