function location_views_province_handler in Location 5
Same name and namespace in other branches
- 5.3 contrib/location_views/location_views.module \location_views_province_handler()
Format a province name
1 string reference to 'location_views_province_handler'
- location_views_tables in contrib/
location_views/ location_views.module - For operation with the views.module.
File
- contrib/
location_views/ location_views.module, line 865 - Views-enables the location module.
Code
function location_views_province_handler($fieldinfo, $fielddata, $value, $data) {
$array = location_province_select_options();
$provinces = $array['#options'];
$location['province'] = $data->location_province;
$location['country'] = $data->location_country;
$values = location_api2form($location);
return $provinces[$values['province']];
}