$view = new view; $view->name = 'test_story_to_page'; $view->description = 'Test story to page'; $view->tag = 'test'; $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_test_noderef_nid' => array( 'label' => 'Test Noderef', 'required' => 0, 'delta' => -1, 'id' => 'field_test_noderef_nid', 'table' => 'node_data_field_test_noderef', 'field' => 'field_test_noderef_nid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => 'Page node', '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' => 0, 'empty_zero' => 0, 'link_to_node' => FALSE, 'selection_node_link' => 'none', 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'title_1' => array( 'label' => 'Story referrer', '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' => 0, 'empty_zero' => 0, 'link_to_node' => FALSE, 'selection_node_link' => 'none', 'exclude' => 0, 'id' => 'title_1', 'table' => 'node', 'field' => 'title', 'relationship' => 'field_test_noderef_nid', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'story' => 'story', ), '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', )); $handler->override_option('use_ajax', TRUE); $handler->override_option('use_pager', '1'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'title' => 'title', ), 'info' => array( 'title' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', ));