You are here

function country_load in Countries 7

Same name and namespace in other branches
  1. 8 countries.module \country_load()
  2. 7.2 countries.module \country_load()

Menu wildcard loader.

See countries_load($cid).

4 calls to country_load()
countries_admin_import_form in ./countries.admin.inc
Menu callback to update the database from the CSV file.
countries_admin_import_form_submit in ./countries.admin.inc
countries_csv_updates in ./countries.admin.inc
countries_tokens in ./countries.tokens.inc
Implements hook_tokens().

File

./countries.module, line 83

Code

function country_load($iso2) {
  $countries = countries_get_countries();
  return isset($countries[$iso2]) ? $countries[$iso2] : NULL;
}