You are here

function _location_include_configured in Location 5

This function simply loads the include file for each country whose locationes are configured to be recognized by the location system.

1 call to _location_include_configured()
location.inc in ./location.inc

File

./location.inc, line 1304

Code

function _location_include_configured() {
  $configured_country_codes = array_keys(location_configured_countries());
  foreach ($configured_country_codes as $country_code) {
    $filename = LOCATION_PATH . '/supported/location.' . $country_code . '.inc';
    if (file_exists($filename)) {
      include_once $filename;
    }
  }
}