name = 'uc_catalog'; $view->description = t('Catalog'); $view->tag = ''; $view->base_table = 'node'; $view->api_version = '3.0-alpha1'; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ /* Display: Defaults */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->display->display_options['title'] = variable_get('uc_catalog_name', t('Catalog')); $handler->display->display_options['access']['type'] = 'none'; $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['query']['type'] = 'views_query'; $handler->display->display_options['exposed_form']['type'] = 'basic'; $handler->display->display_options['pager']['type'] = 'full'; $handler->display->display_options['style_plugin'] = 'table'; $handler->display->display_options['style_options']['columns'] = array( 'entity_id' => 'entity_id', 'model' => 'model', 'timestamp' => 'timestamp', 'title' => 'title', 'sell_price' => 'sell_price', 'buyitnowbutton' => 'buyitnowbutton', ); $handler->display->display_options['style_options']['default'] = '-1'; $handler->display->display_options['style_options']['info'] = array( 'entity_id' => array( 'sortable' => 0, 'align' => '', 'separator' => '', ), 'model' => array( 'sortable' => 1, 'align' => '', 'separator' => '', ), 'timestamp' => array( 'align' => '', 'separator' => '', ), 'title' => array( 'sortable' => 1, 'align' => '', 'separator' => '', ), 'sell_price' => array( 'sortable' => 1, 'align' => '', 'separator' => '', ), 'buyitnowbutton' => array( 'align' => '', 'separator' => '', ), ); $handler->display->display_options['style_options']['override'] = 1; $handler->display->display_options['style_options']['sticky'] = 1; /* Field: Fields: uc_product_image */ $handler->display->display_options['fields']['entity_id']['id'] = 'entity_id'; $handler->display->display_options['fields']['entity_id']['table'] = 'field_data_uc_product_image'; $handler->display->display_options['fields']['entity_id']['field'] = 'entity_id'; $handler->display->display_options['fields']['entity_id']['label'] = 'Image'; $handler->display->display_options['fields']['entity_id']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['make_link'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['absolute'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['trim'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['entity_id']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['entity_id']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['html'] = 0; $handler->display->display_options['fields']['entity_id']['hide_empty'] = 1; $handler->display->display_options['fields']['entity_id']['empty_zero'] = 0; $handler->display->display_options['fields']['entity_id']['settings'] = array( 'image_style' => 'uc_product_list', 'image_link' => 'content', ); /* Field: Product: SKU */ $handler->display->display_options['fields']['model']['id'] = 'model'; $handler->display->display_options['fields']['model']['table'] = 'uc_products'; $handler->display->display_options['fields']['model']['field'] = 'model'; $handler->display->display_options['fields']['model']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['model']['alter']['make_link'] = 0; $handler->display->display_options['fields']['model']['alter']['absolute'] = 0; $handler->display->display_options['fields']['model']['alter']['trim'] = 0; $handler->display->display_options['fields']['model']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['model']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['model']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['model']['alter']['html'] = 0; $handler->display->display_options['fields']['model']['hide_empty'] = 0; $handler->display->display_options['fields']['model']['empty_zero'] = 0; $handler->display->display_options['fields']['model']['link_to_node'] = 0; /* Field: Node: Has new content */ $handler->display->display_options['fields']['timestamp']['id'] = 'timestamp'; $handler->display->display_options['fields']['timestamp']['table'] = 'history'; $handler->display->display_options['fields']['timestamp']['field'] = 'timestamp'; $handler->display->display_options['fields']['timestamp']['exclude'] = TRUE; $handler->display->display_options['fields']['timestamp']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['timestamp']['alter']['make_link'] = 0; $handler->display->display_options['fields']['timestamp']['alter']['absolute'] = 0; $handler->display->display_options['fields']['timestamp']['alter']['trim'] = 0; $handler->display->display_options['fields']['timestamp']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['timestamp']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['timestamp']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['timestamp']['alter']['html'] = 0; $handler->display->display_options['fields']['timestamp']['hide_empty'] = 0; $handler->display->display_options['fields']['timestamp']['empty_zero'] = 0; $handler->display->display_options['fields']['timestamp']['link_to_node'] = 0; $handler->display->display_options['fields']['timestamp']['comments'] = 0; /* Field: Node: Title */ $handler->display->display_options['fields']['title']['id'] = 'title'; $handler->display->display_options['fields']['title']['table'] = 'node'; $handler->display->display_options['fields']['title']['field'] = 'title'; $handler->display->display_options['fields']['title']['alter']['alter_text'] = 1; $handler->display->display_options['fields']['title']['alter']['text'] = '[title] [timestamp]'; $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; $handler->display->display_options['fields']['title']['alter']['absolute'] = 0; $handler->display->display_options['fields']['title']['alter']['trim'] = 0; $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['title']['alter']['html'] = 0; $handler->display->display_options['fields']['title']['hide_empty'] = 0; $handler->display->display_options['fields']['title']['empty_zero'] = 0; $handler->display->display_options['fields']['title']['link_to_node'] = 1; /* Field: Product: Sell price */ $handler->display->display_options['fields']['sell_price']['id'] = 'sell_price'; $handler->display->display_options['fields']['sell_price']['table'] = 'uc_products'; $handler->display->display_options['fields']['sell_price']['field'] = 'sell_price'; $handler->display->display_options['fields']['sell_price']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['sell_price']['alter']['make_link'] = 0; $handler->display->display_options['fields']['sell_price']['alter']['absolute'] = 0; $handler->display->display_options['fields']['sell_price']['alter']['trim'] = 0; $handler->display->display_options['fields']['sell_price']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['sell_price']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['sell_price']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['sell_price']['alter']['html'] = 0; $handler->display->display_options['fields']['sell_price']['hide_empty'] = 0; $handler->display->display_options['fields']['sell_price']['empty_zero'] = 0; $handler->display->display_options['fields']['sell_price']['set_precision'] = 0; $handler->display->display_options['fields']['sell_price']['precision'] = '0'; $handler->display->display_options['fields']['sell_price']['format_plural'] = 0; /* Field: Product: Buy it now button */ $handler->display->display_options['fields']['buyitnowbutton']['id'] = 'buyitnowbutton'; $handler->display->display_options['fields']['buyitnowbutton']['table'] = 'uc_products'; $handler->display->display_options['fields']['buyitnowbutton']['field'] = 'buyitnowbutton'; $handler->display->display_options['fields']['buyitnowbutton']['label'] = ''; $handler->display->display_options['fields']['buyitnowbutton']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['buyitnowbutton']['alter']['make_link'] = 0; $handler->display->display_options['fields']['buyitnowbutton']['alter']['absolute'] = 0; $handler->display->display_options['fields']['buyitnowbutton']['alter']['trim'] = 0; $handler->display->display_options['fields']['buyitnowbutton']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['buyitnowbutton']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['buyitnowbutton']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['buyitnowbutton']['alter']['html'] = 0; $handler->display->display_options['fields']['buyitnowbutton']['hide_empty'] = 0; $handler->display->display_options['fields']['buyitnowbutton']['empty_zero'] = 0; /* Argument: Taxonomy: Term ID (with depth) */ $handler->display->display_options['arguments']['term_node_tid_depth']['id'] = 'term_node_tid_depth'; $handler->display->display_options['arguments']['term_node_tid_depth']['table'] = 'node'; $handler->display->display_options['arguments']['term_node_tid_depth']['field'] = 'term_node_tid_depth'; $handler->display->display_options['arguments']['term_node_tid_depth']['default_action'] = 'empty'; $handler->display->display_options['arguments']['term_node_tid_depth']['style_plugin'] = 'default_summary'; $handler->display->display_options['arguments']['term_node_tid_depth']['wildcard'] = ''; $handler->display->display_options['arguments']['term_node_tid_depth']['wildcard_substitution'] = ''; $handler->display->display_options['arguments']['term_node_tid_depth']['title'] = '%1'; $handler->display->display_options['arguments']['term_node_tid_depth']['breadcrumb'] = 'Catalog'; $handler->display->display_options['arguments']['term_node_tid_depth']['default_argument_type'] = 'taxonomy_tid'; $handler->display->display_options['arguments']['term_node_tid_depth']['default_argument_options']['term_page'] = '1'; $handler->display->display_options['arguments']['term_node_tid_depth']['default_argument_options']['node'] = 0; $handler->display->display_options['arguments']['term_node_tid_depth']['default_argument_options']['limit'] = 0; $handler->display->display_options['arguments']['term_node_tid_depth']['validate_type'] = 'taxonomy_term'; $handler->display->display_options['arguments']['term_node_tid_depth']['validate_options']['vocabularies'] = array( 'catalog' => 'catalog', ); $handler->display->display_options['arguments']['term_node_tid_depth']['validate_options']['transform'] = 0; $handler->display->display_options['arguments']['term_node_tid_depth']['validate_fail'] = 'empty'; $handler->display->display_options['arguments']['term_node_tid_depth']['depth'] = '0'; $handler->display->display_options['arguments']['term_node_tid_depth']['break_phrase'] = 0; $handler->display->display_options['arguments']['term_node_tid_depth']['set_breadcrumb'] = 1; $handler->display->display_options['arguments']['term_node_tid_depth']['use_taxonomy_term_path'] = 0; /* Display: Page */ $handler = $view->new_display('page', 'Page', 'catalog'); $handler->display->display_options['path'] = '_catalog'; $views[$view->name] = $view; $view = new view; $view->name = 'uc_catalog_terms'; $view->description = 'Catalog categories'; $view->tag = ''; $view->base_table = 'taxonomy_term_data'; $view->human_name = ''; $view->api_version = '3.0-alpha1'; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ /* Display: Defaults */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->display->display_options['access']['type'] = 'none'; $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['query']['type'] = 'views_query'; $handler->display->display_options['exposed_form']['type'] = 'basic'; $handler->display->display_options['pager']['type'] = 'full'; $handler->display->display_options['pager']['options']['items_per_page'] = '12'; $handler->display->display_options['pager']['options']['offset'] = '0'; $handler->display->display_options['pager']['options']['id'] = '0'; $handler->display->display_options['style_plugin'] = 'grid'; $handler->display->display_options['style_options']['columns'] = '3'; $handler->display->display_options['style_options']['fill_single_line'] = 1; $handler->display->display_options['row_plugin'] = 'fields'; $handler->display->display_options['row_options']['hide_empty'] = 1; /* Field: Taxonomy: Term ID */ $handler->display->display_options['fields']['tid']['id'] = 'tid'; $handler->display->display_options['fields']['tid']['table'] = 'taxonomy_term_data'; $handler->display->display_options['fields']['tid']['field'] = 'tid'; $handler->display->display_options['fields']['tid']['label'] = ''; $handler->display->display_options['fields']['tid']['exclude'] = TRUE; $handler->display->display_options['fields']['tid']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['tid']['alter']['make_link'] = 0; $handler->display->display_options['fields']['tid']['alter']['absolute'] = 0; $handler->display->display_options['fields']['tid']['alter']['trim'] = 0; $handler->display->display_options['fields']['tid']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['tid']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['tid']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['tid']['alter']['html'] = 0; $handler->display->display_options['fields']['tid']['hide_empty'] = 0; $handler->display->display_options['fields']['tid']['empty_zero'] = 0; $handler->display->display_options['fields']['tid']['format_plural'] = 0; /* Field: Fields: uc_catalog_image */ $handler->display->display_options['fields']['entity_id']['id'] = 'entity_id'; $handler->display->display_options['fields']['entity_id']['table'] = 'field_data_uc_catalog_image'; $handler->display->display_options['fields']['entity_id']['field'] = 'entity_id'; $handler->display->display_options['fields']['entity_id']['label'] = ''; $handler->display->display_options['fields']['entity_id']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['make_link'] = 1; $handler->display->display_options['fields']['entity_id']['alter']['path'] = 'catalog/[tid]'; $handler->display->display_options['fields']['entity_id']['alter']['absolute'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['trim'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['entity_id']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['entity_id']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['entity_id']['alter']['html'] = 0; $handler->display->display_options['fields']['entity_id']['element_label_colon'] = 1; $handler->display->display_options['fields']['entity_id']['element_default_classes'] = 1; $handler->display->display_options['fields']['entity_id']['hide_empty'] = 1; $handler->display->display_options['fields']['entity_id']['empty_zero'] = 0; $handler->display->display_options['fields']['entity_id']['click_sort_column'] = 'fid'; $handler->display->display_options['fields']['entity_id']['settings'] = array( 'image_style' => 'uc_category', 'image_link' => '', ); /* Field: Taxonomy: Term */ $handler->display->display_options['fields']['name']['id'] = 'name'; $handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data'; $handler->display->display_options['fields']['name']['field'] = 'name'; $handler->display->display_options['fields']['name']['label'] = ''; $handler->display->display_options['fields']['name']['alter']['alter_text'] = 0; $handler->display->display_options['fields']['name']['alter']['make_link'] = 1; $handler->display->display_options['fields']['name']['alter']['path'] = 'catalog/[tid]'; $handler->display->display_options['fields']['name']['alter']['absolute'] = 0; $handler->display->display_options['fields']['name']['alter']['trim'] = 0; $handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1; $handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1; $handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0; $handler->display->display_options['fields']['name']['alter']['html'] = 0; $handler->display->display_options['fields']['name']['hide_empty'] = 0; $handler->display->display_options['fields']['name']['empty_zero'] = 0; $handler->display->display_options['fields']['name']['link_to_taxonomy'] = 0; /* Sort criterion: Taxonomy: Weight */ $handler->display->display_options['sorts']['weight']['id'] = 'weight'; $handler->display->display_options['sorts']['weight']['table'] = 'taxonomy_term_data'; $handler->display->display_options['sorts']['weight']['field'] = 'weight'; /* Argument: Taxonomy: Parent term */ $handler->display->display_options['arguments']['parent']['id'] = 'parent'; $handler->display->display_options['arguments']['parent']['table'] = 'taxonomy_term_hierarchy'; $handler->display->display_options['arguments']['parent']['field'] = 'parent'; $handler->display->display_options['arguments']['parent']['default_action'] = 'default'; $handler->display->display_options['arguments']['parent']['style_plugin'] = 'default_summary'; $handler->display->display_options['arguments']['parent']['wildcard'] = ''; $handler->display->display_options['arguments']['parent']['wildcard_substitution'] = ''; $handler->display->display_options['arguments']['parent']['default_argument_type'] = 'fixed'; $handler->display->display_options['arguments']['parent']['default_argument_options']['argument'] = '0'; $handler->display->display_options['arguments']['parent']['break_phrase'] = 0; $handler->display->display_options['arguments']['parent']['not'] = 0; /* Filter: Taxonomy: Vocabulary */ $vid = variable_get('uc_catalog_vid', 0); $handler->display->display_options['filters']['vid']['id'] = 'vid'; $handler->display->display_options['filters']['vid']['table'] = 'taxonomy_term_data'; $handler->display->display_options['filters']['vid']['field'] = 'vid'; $handler->display->display_options['filters']['vid']['value'] = array( $vid => "$vid", ); $views[$view->name] = $view; return $views; }