$view = new view; $view->name = 'Sample'; $view->description = ''; $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('fields', array( 'nid' => array( 'label' => 'Nid', '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, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'exclude' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'none', ), 'path' => array( 'label' => 'Path', '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, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'absolute' => 0, 'exclude' => 0, 'id' => 'path', 'table' => 'node', 'field' => 'path', 'relationship' => 'none', ), 'title' => array( 'label' => 'Title', '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, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'nid' => array( 'operator' => '=', 'value' => array( 'value' => '', 'min' => '', 'max' => '', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'nid_op', 'identifier' => 'nid', 'label' => 'Node: Nid', 'optional' => 0, 'remember' => 0, ), 'build_group' => TRUE, 'group_info' => array( 'identifier' => 'group_nid', 'label' => '', 'optional' => 1, 'widget' => 'select', 'remember' => 0, 'group_items' => array( '0' => array( 'title' => 'first', 'operator' => '<', 'value' => array( 'value' => '12', 'min' => '', 'max' => '', ), 'removed' => 0, 'weight' => '-10', ), '1' => array( 'title' => 'second', 'operator' => '=', 'value' => array( 'value' => '13', 'min' => '', 'max' => '', ), 'removed' => 0, 'weight' => '-10', ), '2' => array( 'title' => 'third', 'operator' => '>', 'value' => array( 'value' => '15', 'min' => '', 'max' => '', ), 'removed' => 0, 'weight' => '-10', ), ), 'default_group' => 'All', 'add_group' => 'Add another item', ), 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'none', 'build_group_button' => array( 'button' => 'Use single filter', ), ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'nid' => 'nid', 'path' => 'path', 'title' => 'title', ), 'info' => array( 'nid' => array( 'sortable' => 0, 'separator' => '', ), 'path' => array( 'separator' => '', ), 'title' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', ));