Index: location.views.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/location/location.views.inc,v retrieving revision 1.16 diff -u -r1.16 location.views.inc --- location.views.inc 3 Dec 2008 22:51:23 -0000 1.16 +++ location.views.inc 2 Jan 2010 11:47:30 -0000 @@ -57,6 +57,9 @@ 'location_handler_field_location_street' => array( 'parent' => 'views_handler_field', ), + 'location_handler_field_location_additional' => array( + 'parent' => 'views_handler_field', + ), 'location_views_handler_filter_proximity' => array( 'parent' => 'views_handler_filter', ), @@ -181,6 +184,24 @@ ), ); + $data['location']['additional'] = array( + 'title' => t('Additional'), + 'help' => t('Additional street address of the selected location.'), + 'field' => array( + 'click sortable' => TRUE, + ), + 'argument' => array( + 'handler' => 'views_handler_argument_string', + // 'empty field name' => t('Unknown'), + ), + 'filter' => array( + 'handler' => 'views_handler_filter_string', + ), + 'sort' => array( + 'handler' => 'views_handler_sort', + ), + ); + $data['location']['city'] = array( 'title' => t('City'), 'help' => t('The city of the selected location.'), Index: handlers/location_handler_field_location_additional.inc =================================================================== RCS file: handlers/location_handler_field_location_additional.inc diff -N handlers/location_handler_field_location_additional.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ handlers/location_handler_field_location_additional.inc 2 Jan 2010 11:47:30 -0000 @@ -0,0 +1,30 @@ + 'name'); + return $options; + } +/* + function options_form(&$form, &$form_state) { + parent::options_form($form, $form_state); + $form['style'] = array( + '#title' => t('Display style'), + '#type' => 'select', + '#options' => array('name' => t('Country name'), 'code' => t('Country code')), + '#default_value' => $this->options['style'], + ); + } +*/ + function render($values) { + return check_plain(trim($values->{$this->aliases['additional']})); + } +}