$view = new view; $view->name = 'documentation'; $view->description = 'Documentation of products and product groups'; $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_linked_documents_nid' => array( 'label' => 'Linked Documents', 'required' => 0, 'delta' => '-1', 'id' => 'field_linked_documents_nid', 'table' => 'node_data_field_linked_documents', 'field' => 'field_linked_documents_nid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'field_type_value' => array( 'label' => '', 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_type_value', 'table' => 'node_data_field_type', 'field' => 'field_type_value', 'relationship' => 'none', ), 'title' => array( 'label' => 'Title', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'field_document_fid_1' => array( 'label' => 'Documents', 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_document_fid_1', 'table' => 'node_data_field_document', 'field' => 'field_document_fid', 'relationship' => 'none', ), 'field_linked_documents_nid' => array( 'label' => 'Linked Documents', 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'teaser', 'multiple' => array( 'group' => 1, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_linked_documents_nid', 'table' => 'node_data_field_linked_documents', 'field' => 'field_linked_documents_nid', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'field_type_value' => array( 'order' => 'ASC', 'id' => 'field_type_value', 'table' => 'node_data_field_type', 'field' => 'field_type_value', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'language' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Language', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'id' => 'language', 'table' => 'node', 'field' => 'language', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'firmware' => 0, 'image' => 0, 'customer' => 0, 'document' => 0, 'feature' => 0, 'help_page' => 0, 'job_offer' => 0, 'landing_page' => 0, 'product' => 0, 'product_group' => 0, 'product_group_listing' => 0, 'product_listing' => 0, 'promotion_large' => 0, 'promotion_offsite' => 0, 'promotion_small' => 0, 'promotion_textual' => 0, 'promotion_textual_offsite' => 0, 'simple_page' => 0, 'supplier' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', ), 'name' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'Target Market term', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'taxonomy_term', 'validate_fail' => 'empty', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'add_table' => 0, 'require_value' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'firmware' => 0, 'image' => 0, 'customer' => 0, 'document' => 0, 'feature' => 0, 'help_page' => 0, 'job_offer' => 0, 'landing_page' => 0, 'product' => 0, 'product_group' => 0, 'product_group_listing' => 0, 'product_listing' => 0, 'promotion_large' => 0, 'promotion_offsite' => 0, 'promotion_small' => 0, 'promotion_textual' => 0, 'promotion_textual_offsite' => 0, 'simple_page' => 0, 'supplier' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 1, ), 'validate_argument_type' => 'name', 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'product' => 'product', 'product_group' => 'product_group', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('header_format', '1'); $handler->override_option('header_empty', 0); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'field_type_value' => 'field_type_value', 'title' => 'title', 'title_1' => 'title_1', 'field_document_fid_1' => 'field_document_fid_1', 'field_linked_documents_nid' => 'field_document_fid_1', ), 'info' => array( 'field_type_value' => array( 'sortable' => 1, 'separator' => '', ), 'title' => array( 'sortable' => 1, 'separator' => '', ), 'title_1' => array( 'sortable' => 0, 'separator' => '', ), 'field_document_fid_1' => array( 'separator' => '', ), 'field_linked_documents_nid' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('attachment', 'Attachment', 'attachment_1'); $handler->override_option('attachment_position', 'before'); $handler->override_option('inherit_arguments', TRUE); $handler->override_option('inherit_exposed_filters', FALSE); $handler->override_option('displays', array());