$view = new view; $view->name = 'equip_vendors'; $view->description = 'View of equipment vendors'; $view->tag = 'equip_vendors'; $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( 'field_vendor_logo_fid' => array( 'label' => '', 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'image_plain', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_vendor_logo_fid', 'table' => 'node_data_field_vendor_logo', 'field' => 'field_vendor_logo_fid', 'relationship' => 'none', ), 'title' => array( 'label' => '', 'link_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_vendorsite_url' => array( 'label' => '', 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_vendorsite_url', 'table' => 'node_data_field_vendorsite', 'field' => 'field_vendorsite_url', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_reference_file_fid' => array( 'label' => 'Reference Files', 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array( 'group' => 1, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_reference_file_fid', 'table' => 'node_data_field_reference_file', 'field' => 'field_reference_file_fid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'tid' => array( 'label' => 'Group', 'type' => 'separator', 'separator' => ', ', 'empty' => '', 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( '6' => 0, '1' => 0, '8' => 0, ), 'exclude' => 0, 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'type' => array( 'label' => '', 'link_to_node' => 0, 'exclude' => 1, 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'field_display_order_value' => array( 'order' => 'ASC', 'delta' => -1, 'id' => 'field_display_order_value', 'table' => 'node_data_field_display_order', 'field' => 'field_display_order_value', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'name' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'List of %1 Equipment Vendors', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'add_table' => 1, 'require_value' => 1, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'flashnode' => 0, 'image' => 0, 'equp_vendors' => 0, 'page' => 0, 'supply_vendor' => 0, 'used_equip' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '6' => 0, '1' => 0, '8' => 0, ), 'validate_argument_type' => 'tid', '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', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'supply_vendor' => 'supply_vendor', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'tid' => array( 'operator' => 'or', 'value' => array( '20' => '20', '19' => '19', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'type' => 'select', 'vid' => '6', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'hierarchy' => 0, 'relationship' => 'none', 'reduce_duplicates' => 1, ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('title', 'Vendors '); $handler->override_option('items_per_page', 20); $handler->override_option('use_pager', 'mini'); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => 'type', 'override' => 1, 'sticky' => 1, 'order' => 'asc', 'columns' => array( 'field_vendor_logo_fid' => 'field_vendor_logo_fid', 'title' => 'field_vendorsite_url', 'field_vendorsite_url' => 'title', 'teaser' => 'teaser', 'field_reference_file_fid' => 'field_reference_file_fid', 'tid' => 'tid', 'type' => 'type', ), 'info' => array( 'field_vendor_logo_fid' => array( 'separator' => '', ), 'title' => array( 'sortable' => 1, 'separator' => '', ), 'field_vendorsite_url' => array( 'sortable' => 0, 'separator' => ' ', ), 'teaser' => array( 'separator' => '', ), 'field_reference_file_fid' => array( 'separator' => '', ), 'tid' => array( 'separator' => ',', ), 'type' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', )); $handler->override_option('row_options', array( 'inline' => array( 'field_vendor_logo_fid' => 'field_vendor_logo_fid', 'field_vendorsite_url' => 'field_vendorsite_url', 'teaser' => 'teaser', 'tid' => 'tid', ), 'separator' => ' -', )); $handler = $view->new_display('page', 'Equipment', 'page_2'); $handler->override_option('arguments', array( 'name' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'List of %1 Supplies Vendors', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'add_table' => 1, 'require_value' => 1, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'flashnode' => 0, 'image' => 0, 'equp_vendors' => 0, 'page' => 0, 'supply_vendor' => 0, 'used_equip' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '6' => 0, '1' => 0, '8' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', ), )); $handler->override_option('title', 'Equipment Vendors '); $handler->override_option('path', 'equip'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Supply Vendors', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'weight' => 0, ));