$view = new view; $view->name = 'location_postcode_proximity'; $view->description = 'A proximity search by post code using the location module'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'address' => array( 'label' => 'Address', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'hide' => array( 'name' => 0, 'street' => 0, 'additional' => 0, 'city' => 0, 'province' => 0, 'postal_code' => 0, 'country' => 0, 'locpick' => 0, 'fax' => 0, 'phone' => 0, 'province_name' => 0, 'country_name' => 0, 'map_link' => 0, 'coords' => 0, ), 'exclude' => 0, 'id' => 'address', 'table' => 'location', 'field' => 'address', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'distance' => array( 'order' => 'ASC', 'origin' => 'tied', 'latitude' => '', 'longitude' => '', 'postal_code' => '', 'country' => '', 'php_code' => '', 'nid_arg' => '', 'nid_loc_field' => 'node', 'uid_arg' => '', 'id' => 'distance', 'table' => 'location', 'field' => 'distance', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'distance' => array( 'operator' => 'dist', 'value' => array( 'latitude' => '', 'longitude' => '', 'postal_code' => '', 'country' => '', 'php_code' => '', 'nid_arg' => '', 'nid_loc_field' => 'node', 'uid_arg' => '', 'search_distance' => '100', 'search_units' => 'mile', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'distance_op', 'identifier' => 'distance', 'label' => 'Proximity', 'user_location_choose' => 0, 'optional' => 1, 'remember' => 0, ), 'identifier' => 'dist', 'origin' => 'postal_default', 'id' => 'distance', 'table' => 'location', 'field' => 'distance', 'relationship' => 'none', 'gmap_macro' => '', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', ));