You are here

function _location_fetch_provinces in Location 6.3

Ajax callback to get an array of provinces for the given country.

Parameters

$country: The 2 letter country code of the country to fetch the provinces for.

1 string reference to '_location_fetch_provinces'
location_menu in ./location.module
Implementation of hook_menu().

File

./location.module, line 1046
Location module main routines. 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…

Code

function _location_fetch_provinces($country) {
  drupal_json(location_get_provinces($country));
}