You are here

function location_views_field_handler_address in Location 5

Same name and namespace in other branches
  1. 5.3 contrib/location_views/location_views.module \location_views_field_handler_address()
1 string reference to 'location_views_field_handler_address'
location_views_tables in contrib/location_views/location_views.module
For operation with the views.module.

File

contrib/location_views/location_views.module, line 886
Views-enables the location module.

Code

function location_views_field_handler_address($fieldinfo, $fielddata, $value, $data) {
  $location['name'] = $data->location_name;
  $location['street'] = $data->location_street;
  $location['city'] = $data->location_city;
  $location['province'] = $data->location_province;
  $location['country'] = $data->location_country;
  $location['postal_code'] = $data->location_postal_code;
  return theme('location', $location);
}