$view = new view; $view->name = 'zip_code_proximity_test_2'; $view->description = 'FOR Chapters by Zip Code'; $view->tag = 'location, groups, zip'; $view->view_php = ''; $view->base_table = 'location'; $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' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '65', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 1, ), 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'distance' => array( 'label' => 'Distance', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'origin' => 'tied', 'units' => 'mi', 'latitude' => '', 'longitude' => '', 'exclude' => 0, 'id' => 'distance', 'table' => 'location', 'field' => 'distance', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'distance' => array( 'order' => 'ASC', 'origin' => 'tied', 'units' => 'mi', 'latitude' => '', 'longitude' => '', 'id' => 'distance', 'table' => 'location', 'field' => 'distance', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'distance' => array( 'operator' => 'dist', 'value' => array( 'latitude' => '', 'longitude' => '', 'postal_code' => '', 'country' => '', 'search_distance' => '200', 'search_units' => 'mile', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'distance_op', 'identifier' => 'distance', 'label' => '', 'optional' => 1, 'remember' => 0, ), 'type' => 'postal_default', 'identifier' => 'dist', 'id' => 'distance', 'table' => 'location', 'field' => 'distance', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type_1' => array( 'operator' => 'in', 'value' => array( 'group' => 'group', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type_1', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('empty', 'There are no FOR chapters in the region you specified. Try widening your search range.'); $handler->override_option('empty_format', '1'); $handler->override_option('items_per_page', 99999); $handler->override_option('style_plugin', 'gmap'); $handler->override_option('style_options', array( 'grouping' => '', 'macro' => '[gmap ]', 'datasource' => 'location', 'latfield' => 'city', 'lonfield' => 'city', 'markers' => 'static', 'markerfield' => 'city', 'markertype' => 'big blue', )); $handler = $view->new_display('page', 'Page: Zip Filter', 'page_1'); $handler->override_option('fields', array( 'distance' => array( 'label' => 'Distance', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'origin' => 'tied', 'units' => 'mi', 'latitude' => '', 'longitude' => '', 'exclude' => 0, 'id' => 'distance', 'table' => 'location', 'field' => 'distance', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '350', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 1, ), 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'asc', 'columns' => array( 'title' => 'title', 'teaser' => 'teaser', 'distance' => 'distance', ), 'info' => array( 'title' => array( 'sortable' => 1, 'separator' => '', ), 'teaser' => array( 'separator' => '', ), 'distance' => array( 'sortable' => 1, 'separator' => '', ), ), 'default' => 'distance', )); $handler->override_option('path', 'for-chapters-by-zip'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('page', 'Page - Map of All Chapters', 'page_2'); $handler->override_option('fields', array( 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '130', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 1, ), 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'relationship' => 'none', 'override' => array( 'button' => 'Use default', ), ), )); $handler->override_option('sorts', array()); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type_1' => array( 'operator' => 'in', 'value' => array( 'group' => 'group', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type_1', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('header', 'Click for a un-mapped list of all FOR chapters.'); $handler->override_option('header_format', '1'); $handler->override_option('header_empty', 1); $handler->override_option('path', 'all-fellowship-of-reconciliation-chapters'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('page', 'Page - Listing of Chapters', 'page_3'); $handler->override_option('fields', array( 'city' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'exclude' => 0, 'id' => 'city', 'table' => 'location', 'field' => 'city', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '350', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 1, ), 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'city' => array( 'order' => 'ASC', 'id' => 'city', 'table' => 'location', 'field' => 'city', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type_1' => array( 'operator' => 'in', 'value' => array( 'group' => 'group', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type_1', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'asc', 'columns' => array( 'city' => 'city', 'title' => 'title', 'teaser' => 'teaser', ), 'info' => array( 'city' => array( 'sortable' => 1, 'separator' => '', ), 'title' => array( 'sortable' => 1, 'separator' => '', ), 'teaser' => array( 'separator' => '', ), ), 'default' => 'city', )); $handler->override_option('path', 'listing-of-chapters'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));