$view = new view; $view->name = 'Maps'; $view->description = 'All interactive maps'; $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('relationships', array( 'field_city_nid' => array( 'label' => 'City', 'required' => 0, 'delta' => '-1', 'id' => 'field_city_nid', 'table' => 'node_data_field_city', 'field' => 'field_city_nid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_city_nid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'plain', 'multiple' => array( 'group' => 0, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_city_nid', 'table' => 'node_data_field_city', 'field' => 'field_city_nid', 'relationship' => 'none', ), 'field_tour_summary_value' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_tour_summary_value', 'table' => 'node_data_field_tour_summary', 'field' => 'field_tour_summary_value', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_activity_summary_value' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_activity_summary_value', 'table' => 'node_data_field_activity_summary', 'field' => 'field_activity_summary_value', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_accommodation_summary_value' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_accommodation_summary_value', 'table' => 'node_data_field_accommodation_summary', 'field' => 'field_accommodation_summary_value', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_tour_location_openlayers_wkt' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => 0, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 1, 'id' => 'field_tour_location_openlayers_wkt', 'table' => 'node_data_field_tour_location', 'field' => 'field_tour_location_openlayers_wkt', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_activity_location_openlayers_wkt' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 1, 'id' => 'field_activity_location_openlayers_wkt', 'table' => 'node_data_field_activity_location', 'field' => 'field_activity_location_openlayers_wkt', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_accommodation_location_openlayers_wkt' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 1, 'id' => 'field_accommodation_location_openlayers_wkt', 'table' => 'node_data_field_accommodation_location', 'field' => 'field_accommodation_location_openlayers_wkt', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_hire_location_openlayers_wkt' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 1, 'id' => 'field_hire_location_openlayers_wkt', 'table' => 'node_data_field_hire_location', 'field' => 'field_hire_location_openlayers_wkt', 'relationship' => 'none', ), 'type' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'exclude' => 1, 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'tid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'imagecache_preset' => '', 'link_to_taxonomy' => 0, 'exclude' => 1, 'id' => 'tid', 'table' => 'term_image', 'field' => 'tid', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'title' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'breadcrumb' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 0, 'limit' => '0', 'case' => 'ucwords', 'path_case' => 'lower', 'transform_dash' => 1, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '3' => 0, ), 'relationship' => 'field_city_nid', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'product' => 0, 'accommodation' => 0, 'activity' => 0, 'tour' => 0, 'vehicle_hire' => 0, 'airport' => 0, 'city' => 0, 'country' => 0, 'howto' => 0, 'internet_cafe' => 0, 'option' => 0, 'page' => 0, 'special_offer' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '2' => 0, '4' => 0, '5' => 0, '3' => 0, '1' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); $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' => array( 'operator' => 'in', 'value' => array( 'accommodation' => 'accommodation', 'activity' => 'activity', 'tour' => 'tour', 'vehicle_hire' => 'vehicle_hire', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'All tours, activities, accommodation and vehicle hires'); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'openlayers_views'); $handler->override_option('style_options', array( 'data_source' => array( 'value' => array( 'other_wkt' => 'other_wkt', ), 'other_lat' => 'title', 'other_lon' => 'title', 'other_wkt' => array( 'field_tour_location_openlayers_wkt' => 'field_tour_location_openlayers_wkt', 'field_activity_location_openlayers_wkt' => 'field_activity_location_openlayers_wkt', 'field_accommodation_location_openlayers_wkt' => 'field_accommodation_location_openlayers_wkt', 'field_hire_location_openlayers_wkt' => 'field_hire_location_openlayers_wkt', ), ), 'presets' => array( 'map_preset' => 'google', ), 'behaviors' => array( 'tooltip' => '0', 'popup' => '#all_fields', 'zoom_to_layer' => 1, 'fullscreen' => 0, 'declutter' => 0, 'declutter_adjustment' => '', 'cluster' => 1, 'cluster_distance' => '20', 'cluster_threshold' => '2', 'cluster_popup' => 0, 'cluster_popup_callback' => '', ), 'grouping_set' => array( 'grouping' => '0', ), 'style' => array( 'style_context_callback' => '', 'snippet' => 'return brat_taxonomy_icons($record);', ), )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'map'); $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, ));