{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf460 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;\red0\green49\blue81;} \paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkind0 \deftab720 \pard\pardeftab720\ql\qnatural \f0\fs26 \cf2 $view = new view;\ $view->name = 'flystockbrowser';\ $view->description = 'Fly Stock Browser';\ $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(\ 'field_stocknum_value' => array(\ 'label' => 'Stock #',\ '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,\ 'label_type' => 'widget',\ 'format' => 'default',\ 'multiple' => array(\ 'group' => TRUE,\ 'multiple_number' => '',\ 'multiple_from' => '',\ 'multiple_reversed' => FALSE,\ ),\ 'exclude' => 0,\ 'id' => 'field_stocknum_value',\ 'table' => 'node_data_field_stocknum',\ 'field' => 'field_stocknum_value',\ 'relationship' => 'none',\ 'override' => array(\ 'button' => 'Override',\ ),\ ),\ 'field_stockloc_value' => array(\ 'label' => 'Location',\ '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' => 'widget',\ 'format' => 'default',\ 'multiple' => array(\ 'group' => TRUE,\ 'multiple_number' => '',\ 'multiple_from' => '',\ 'multiple_reversed' => FALSE,\ ),\ 'exclude' => 0,\ 'id' => 'field_stockloc_value',\ 'table' => 'node_data_field_stockloc',\ 'field' => 'field_stockloc_value',\ 'override' => array(\ 'button' => 'Override',\ ),\ 'relationship' => 'none',\ ),\ 'title' => array(\ 'label' => 'Fly Stock',\ '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',\ 'relationship' => 'none',\ 'override' => array(\ 'button' => 'Override',\ ),\ ),\ 'field_stockcat_value' => array(\ 'label' => 'Stock Category',\ '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' => 'widget',\ 'format' => 'plain',\ 'multiple' => array(\ 'group' => 1,\ 'multiple_number' => '',\ 'multiple_from' => '',\ 'multiple_reversed' => 0,\ ),\ 'exclude' => 0,\ 'id' => 'field_stockcat_value',\ 'table' => 'node_data_field_stockcat',\ 'field' => 'field_stockcat_value',\ 'override' => array(\ 'button' => 'Override',\ ),\ 'relationship' => 'none',\ ),\ ));\ $handler->override_option('sorts', array(\ 'field_stocknum_value' => array(\ 'order' => 'ASC',\ 'delta' => -1,\ 'id' => 'field_stocknum_value',\ 'table' => 'node_data_field_stocknum',\ 'field' => 'field_stocknum_value',\ 'override' => array(\ 'button' => 'Override',\ ),\ 'relationship' => 'none',\ ),\ ));\ $handler->override_option('filters', array(\ 'type' => array(\ 'operator' => 'in',\ 'value' => array(\ 'flystocks' => 'flystocks',\ ),\ 'group' => '0',\ 'exposed' => FALSE,\ 'expose' => array(\ 'operator' => FALSE,\ 'label' => '',\ ),\ 'id' => 'type',\ 'table' => 'node',\ 'field' => 'type',\ 'relationship' => 'none',\ ),\ ));\ $handler->override_option('access', array(\ 'type' => 'role',\ 'role' => array(\ '3' => 3,\ ),\ ));\ $handler->override_option('cache', array(\ 'type' => 'none',\ ));\ $handler->override_option('title', 'Fly stock Labels');\ $handler->override_option('use_ajax', TRUE);\ $handler->override_option('items_per_page', 50);\ $handler->override_option('use_more', 1);\ $handler->override_option('link_display', 'page_1');\ $handler->override_option('style_plugin', 'table');\ $handler->override_option('style_options', array(\ 'grouping' => 'field_stockloc_value',\ 'override' => 1,\ 'sticky' => 0,\ 'order' => 'asc',\ 'columns' => array(\ 'field_stocknum_value' => 'field_stocknum_value',\ 'field_stockloc_value' => 'field_stockloc_value',\ 'title' => 'title',\ 'field_stockcat_value' => 'field_stockcat_value',\ ),\ 'info' => array(\ 'field_stocknum_value' => array(\ 'sortable' => 0,\ 'separator' => '',\ ),\ 'field_stockloc_value' => array(\ 'sortable' => 0,\ 'separator' => '',\ ),\ 'title' => array(\ 'sortable' => 0,\ 'separator' => '',\ ),\ 'field_stockcat_value' => array(\ 'separator' => '',\ ),\ ),\ 'default' => '-1',\ ));\ $handler->override_option('row_options', array(\ 'inline' => array(\ 'field_stocknum_value' => 'field_stocknum_value',\ 'field_stockloc_value' => 'field_stockloc_value',\ ),\ 'separator' => '',\ ));\ $handler = $view->new_display('page', 'Sort by stock #', 'page_1');\ $handler->override_option('sorts', array(\ 'field_stocknum_value' => array(\ 'order' => 'ASC',\ 'delta' => -1,\ 'id' => 'field_stocknum_value',\ 'table' => 'node_data_field_stocknum',\ 'field' => 'field_stocknum_value',\ 'override' => array(\ 'button' => 'Use default',\ ),\ 'relationship' => 'none',\ ),\ ));\ $handler->override_option('path', 'flystocks-by-number');\ $handler->override_option('menu', array(\ 'type' => 'normal',\ 'title' => 'Sort by stock #',\ 'description' => '',\ 'weight' => '1',\ 'name' => 'menu-flystocks',\ ));\ $handler->override_option('tab_options', array(\ 'type' => 'none',\ 'title' => '',\ 'description' => '',\ 'weight' => 0,\ ));\ $handler = $view->new_display('page', 'Sort by stock category', 'page_2');\ $handler->override_option('sorts', array(\ 'field_stockcat_value' => array(\ 'order' => 'ASC',\ 'delta' => '0',\ 'id' => 'field_stockcat_value',\ 'table' => 'node_data_field_stockcat',\ 'field' => 'field_stockcat_value',\ 'override' => array(\ 'button' => 'Use default',\ ),\ 'relationship' => 'none',\ ),\ ));\ $handler->override_option('path', 'flystocks-by-category');\ $handler->override_option('menu', array(\ 'type' => 'normal',\ 'title' => 'Sort by category',\ 'description' => '',\ 'weight' => '2',\ 'name' => 'menu-flystocks',\ ));\ $handler->override_option('tab_options', array(\ 'type' => 'none',\ 'title' => '',\ 'description' => '',\ 'weight' => 0,\ ));\ $handler = $view->new_display('mailing', 'Mailing Labels', 'mailing_1');\ $handler->override_option('style_plugin', 'grid');\ $handler->override_option('style_options', array());\ $handler->override_option('row_options', array(\ 'inline' => array(\ 'field_stocknum_value' => 'field_stocknum_value',\ 'field_stockloc_value' => 'field_stockloc_value',\ ),\ 'separator' => '\'97',\ ));\ $handler->override_option('attachment_position', 'before');\ $handler->override_option('inherit_arguments', TRUE);\ $handler->override_option('inherit_exposed_filters', 0);\ $handler->override_option('displays', array(\ 'page_1' => 'page_1',\ 'default' => 0,\ 'page_2' => 0,\ ));}