array( 'path' => drupal_get_path('module', 'location') . '/views', ), 'handlers' => array( 'apachesolr_views_location_filter' => array( 'parent' => 'views_handler_filter', ), ), ); } /** * Implementation of of hook_views_data_alter() */ function localsolr_views_data_alter(&$data) { // alter in to the $data['apachesolr'] fields // now must remember that because of the way // Views works, you can't do std data definition // as Views will try to JOIN the new table in // Furthermore, this isn't a new table but an "extension" $data['apachesolr']['geo_distance'] = array( 'title' => t('Location String'), 'help' => t('Location string filter to fix the result to within this setting'), 'filter' => array( 'handler' => 'apachesolr_views_location_filter', ), 'sort' => array( 'handler' => 'apachesolr_views_handler_sort', ) ); }