$view = new view; $view->name = 'comments_rss'; $view->description = 'comments RSS feeds for nodes'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'comments'; $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( 'nid' => array( 'label' => 'Node', 'required' => 1, 'id' => 'nid', 'table' => 'comments', 'field' => 'nid', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('fields', array( 'subject' => array( 'id' => 'subject', 'table' => 'comments', 'field' => 'subject', 'label' => '', 'link_to_comment' => 1, 'relationship' => 'none', ), 'timestamp' => array( 'id' => 'timestamp', 'table' => 'comments', 'field' => 'timestamp', 'label' => '', 'date_format' => 'time ago', 'custom_date_format' => '', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'timestamp' => array( 'id' => 'timestamp', 'table' => 'comments', 'field' => 'timestamp', 'order' => 'DESC', 'granularity' => 'second', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'nid' => array( 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'nid', ), )); $handler->override_option('filters', array( 'status_1' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status_1', 'table' => 'comments', 'field' => 'status', 'relationship' => 'none', ), 'nid' => array( 'operator' => '=', 'value' => '', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'nid', 'table' => 'node_access', 'field' => 'nid', 'relationship' => 'nid', ), 'moderate' => array( 'operator' => '=', 'value' => '0', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'moderate', 'table' => 'node', 'field' => 'moderate', 'relationship' => 'nid', ), 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'nid', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => '', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Symantec Connect - comments for:'); $handler->override_option('items_per_page', 5); $handler->override_option('use_more', 1); $handler->override_option('style_plugin', 'list'); $handler->override_option('style_options', array( 'type' => 'ul', )); $handler = $view->new_display('feed', 'Feed', 'feed_1'); $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' => 'numeric', 'validate_fail' => 'not found', 'break_phrase' => 0, 'not' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( '2' => 0, '3' => 0, '5' => 0, '10' => 0, '41' => 0, '21' => 0, '11' => 0, '31' => 0, '9' => 0, ), 'override' => array( 'button' => 'Use default', ), 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'image' => 0, 'announcement' => 0, 'article' => 0, 'callout' => 0, 'community' => 0, 'download' => 0, 'event' => 0, 'feature_image' => 0, 'group' => 0, 'idea' => 0, 'page' => 0, 'promotion' => 0, 'promotion_text' => 0, 'sc_forum' => 0, 'simplenews' => 0, 'utility' => 0, 'video' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '5' => 0, '4' => 0, '31' => 0, '17' => 0, '32' => 0, '16' => 0, '21' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, 'validate_argument_node_flag_name' => '*relationship*', 'validate_argument_node_flag_test' => 'flaggable', 'validate_argument_node_flag_id_type' => 'id', 'validate_argument_user_flag_name' => '*relationship*', 'validate_argument_user_flag_test' => 'flaggable', 'validate_argument_user_flag_id_type' => 'id', 'validate_argument_is_member' => 0, 'validate_argument_signup_status' => 'any', 'validate_argument_signup_node_access' => 0, 'validate_argument_php' => '', ), )); $handler->override_option('items_per_page', 20); $handler->override_option('style_plugin', 'rss'); $handler->override_option('style_options', array( 'mission_description' => FALSE, 'description' => '', )); $handler->override_option('row_plugin', 'comment_rss'); $handler->override_option('path', 'comments-rss/%'); $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, )); $handler->override_option('displays', array()); $handler->override_option('sitename_title', FALSE);