$view = new view; $view->name = 'Amazon'; $view->description = 'Amazon related views'; $view->tag = 'Amazon'; $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', 'Standards', 'default'); $handler->override_option('relationships', array( 'field_legacy_asin_asin' => array( 'label' => 'field_legacy_asin_asin', 'required' => 1, 'id' => 'field_legacy_asin_asin', 'table' => 'node_data_field_legacy_asin', 'field' => 'field_legacy_asin_asin', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'link_format' => 'node', 'exclude' => 0, 'id' => 'title', 'table' => 'amazon_item', 'field' => 'title', 'relationship' => 'field_legacy_asin_asin', ), 'product_image' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'image_size' => 'mediumimage', 'link_format' => 'amazon', 'exclude' => 0, 'id' => 'product_image', 'table' => 'amazon_item_image', 'field' => 'product_image', 'relationship' => 'field_legacy_asin_asin', 'presentation_format' => 'markup', ), 'publisher' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'publisher', 'table' => 'amazon_item', 'field' => 'publisher', 'relationship' => 'field_legacy_asin_asin', 'override' => array( 'button' => 'Übersteuern', ), ), 'publicationdate' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'date_format' => 'custom', 'custom_date_format' => 'Y', 'exclude' => 0, 'id' => 'publicationdate', 'table' => 'amazon_book', 'field' => 'publicationdate', 'relationship' => 'field_legacy_asin_asin', 'override' => array( 'button' => 'Übersteuern', ), ), )); $handler->override_option('sorts', array( 'random' => array( 'order' => 'ASC', 'id' => 'random', 'table' => 'views', 'field' => 'random', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'amazon' => 'amazon', 'amazon_node' => 'amazon_node', 'ausgabe' => 'ausgabe', 'buch' => 'buch', 'rezension' => 'rezension', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'invalid_asin' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'invalid_asin', 'table' => 'amazon_item', 'field' => 'invalid_asin', 'relationship' => 'field_legacy_asin_asin', 'override' => array( 'button' => 'Übersteuern', ), ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 1); $handler->override_option('row_options', array( 'inline' => array( 'publisher' => 'publisher', ), 'separator' => '', 'hide_empty' => 1, )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('title', 'Reviews'); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);