$view = new view; $view->name = 'gallery_test'; $view->description = 'Gallery Test'; $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_gal_photos_fid' => array( 'label' => 'Add photos', 'required' => 1, 'delta' => '-1', 'id' => 'field_gal_photos_fid', 'table' => 'node_data_field_gal_photos', 'field' => 'field_gal_photos_fid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', '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', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_photographer_value' => array( 'label' => 'Photographer', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', '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_photographer_value', 'table' => 'node_data_field_photographer', 'field' => 'field_photographer_value', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_gal_photos_fid' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'gal_full_default', 'multiple' => array( 'group' => 0, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_gal_photos_fid', 'table' => 'node_data_field_gal_photos', 'field' => 'field_gal_photos_fid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'nid' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => '', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '3' => 0, '7' => 0, '4' => 0, '5' => 0, '6' => 0, ), 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'ad' => 0, 'ed_classified' => 0, 'image' => 0, 'business' => 0, 'chat' => 0, 'event' => 0, 'feed' => 0, 'feedapi_aggregator' => 0, 'gallery' => 0, 'issue' => 0, 'off_topic' => 0, 'page' => 0, 'promo' => 0, 'story' => 0, 'toto' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '1' => 0, '2' => 0, '3' => 0, '8' => 0, '11' => 0, '13' => 0, '14' => 0, '6' => 0, '5' => 0, '7' => 0, '12' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('items_per_page', 1); $handler->override_option('use_pager', 'mini'); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'gallery/image'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));