$view = new view; $view->name = 'amazon_demo'; $view->description = 'Amazon Demo'; $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_asin_asin' => array( 'label' => 'field_asin_asin', 'required' => 1, 'id' => 'field_asin_asin', 'table' => 'node_data_field_asin', 'field' => 'field_asin_asin', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'field_asin_asin' => array( 'label' => 'ASIN', '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_asin_asin', 'table' => 'node_data_field_asin', 'field' => 'field_asin_asin', 'relationship' => 'none', ), 'asin' => array( 'label' => 'ASIN', '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, ), 'exclude' => 0, 'id' => 'asin', 'table' => 'amazon_item', 'field' => 'asin', 'relationship' => 'field_asin_asin', ), 'nothing' => array( 'label' => 'Custom text showing URL rewrite', 'alter' => array( 'text' => 'Custom Link to product page', 'make_link' => 1, 'path' => 'amazon_store/item/[asin]', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'nothing', 'table' => 'views', 'field' => 'nothing', 'relationship' => 'none', ), 'binding' => array( 'label' => 'Binding', '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, ), 'exclude' => 0, 'id' => 'binding', 'table' => 'amazon_item', 'field' => 'binding', 'relationship' => 'field_asin_asin', ), 'listpriceformattedprice' => array( 'label' => 'List price', '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, ), 'exclude' => 0, 'id' => 'listpriceformattedprice', 'table' => 'amazon_item', 'field' => 'listpriceformattedprice', 'relationship' => 'field_asin_asin', ), 'title' => array( 'label' => 'Title', '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_format' => 'plain', 'exclude' => 0, 'id' => 'title', 'table' => 'amazon_item', 'field' => 'title', 'relationship' => 'field_asin_asin', ), 'detailpageurl' => array( 'label' => 'Detail page URL', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => '[detailpageurl]', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'detailpageurl', 'table' => 'amazon_item', 'field' => 'detailpageurl', 'relationship' => 'field_asin_asin', ), 'product_image' => array( 'label' => 'Product image', '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, ), 'image_size' => 'smallimage', 'link_format' => 'amazon', 'exclude' => 0, 'id' => 'product_image', 'table' => 'amazon_item_image', 'field' => 'product_image', 'relationship' => 'field_asin_asin', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'amazon_demo' => 'amazon_demo', ), '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('cache', array( 'type' => 'none', ));