location_load_country

  1. drupal
    1. 6 location.inc function
    2. 7 location.inc function
Drupal 7 location_load_country($country)

Load support for a country.

This function will load support for a country identified by its two-letter ISO code.

Parameters

$country: Two-letter ISO code for country.

Return value

TRUE if the file was found and loaded, FALSE otherwise.

10 calls to location_load_country()

File

sites/all/modules/location/location.inc, line 568
An implementation of a universal API for location manipulation. Provides functions for postal_code proximity searching, deep-linking into online mapping services. Currently, some options are configured through an interface provided by location.module.

Code

function location_load_country($country) {
  location_standardize_country_code($country);

  $file = DRUPAL_ROOT . '/' . drupal_get_path('module', 'location') . '/supported/location.' . $country . '.inc';
  if (file_exists($file)) {
    include_once($file);
    return TRUE;
  }
  return FALSE;
}