name = 'nodecomments'; $view->description = 'Node comments flat'; $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', 'nodecomments', 'default'); $handler->override_option('relationships', array( 'nid' => array( 'label' => 'Node', 'required' => 0, 'id' => 'nid', 'table' => 'node_comments', 'field' => 'nid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => 'Title', 'link_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'name' => array( 'label' => 'Author', 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'node_comments', 'field' => 'name', 'relationship' => 'none', ), 'thread' => array( 'label' => 'Depth', 'exclude' => 0, 'id' => 'thread', 'table' => 'node_comments', 'field' => 'thread', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'nid' => array( 'default_action' => 'not found', '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', 'relationship' => 'nid', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'comment' => 0, 'page' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array(), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => '', )); $handler->override_option('items_per_page', 0); $handler->override_option('style_options', array( 'grouping' => '', )); $handler->override_option('row_plugin', 'node'); $handler->override_option('row_options', array( 'teaser' => 0, 'links' => 1, )); $views[$view->name] = $view; $view = new view; $view->name = 'nodecomments_threaded'; $view->description = 'Node comments threaded'; $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', 'nodecomments', 'default'); $handler->override_option('relationships', array( 'nid' => array( 'label' => 'Node', 'required' => 0, 'id' => 'nid', 'table' => 'node_comments', 'field' => 'nid', 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'title' => array( 'label' => 'Title', 'link_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'name' => array( 'label' => 'Author', 'link_to_user' => 1, 'exclude' => 0, 'id' => 'name', 'table' => 'node_comments', 'field' => 'name', 'relationship' => 'none', ), 'thread' => array( 'label' => 'Depth', 'exclude' => 0, 'id' => 'thread', 'table' => 'node_comments', 'field' => 'thread', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'thread' => array( 'order' => 'ASC', 'id' => 'thread', 'table' => 'node_comments', 'field' => 'thread', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'nid' => array( 'default_action' => 'not found', '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', 'relationship' => 'nid', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'comment' => 0, 'page' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array(), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => '', )); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'nodecomment_threaded'); $handler->override_option('row_plugin', 'node'); $handler->override_option('row_options', array( 'teaser' => 1, 'links' => 1, )); $views[$view->name] = $view; return $views; }