You are here

function location_views_field_handler_user_address in Location 5

1 string reference to 'location_views_field_handler_user_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 877
Views-enables the location module.

Code

function location_views_field_handler_user_address($fieldinfo, $fielddata, $value, $data) {
  $location['name'] = $data->user_location_name;
  $location['street'] = $data->user_location_street;
  $location['city'] = $data->user_location_city;
  $location['province'] = $data->user_location_province;
  $location['country'] = $data->user_location_country;
  $location['postal_code'] = $data->user_location_postal_code;
  return theme('location', $location);
}