diff --git a/modules/features/commons_blog/commons_blog.views_default.inc b/modules/features/commons_blog/commons_blog.views_default.inc index 2130f3c..98127a4 100644 --- a/modules/features/commons_blog/commons_blog.views_default.inc +++ b/modules/features/commons_blog/commons_blog.views_default.inc @@ -11,10 +11,9 @@ function commons_blog_views_default_views() { $view->name = 'blog_latest_comments'; $view->description = 'The latest comments on all blog posts'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -267,6 +266,20 @@ function commons_blog_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -306,10 +319,9 @@ function commons_blog_views_default_views() { $view->name = 'content_blog_page'; $view->description = 'A global view of all site blogs'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -585,8 +597,8 @@ function commons_blog_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -746,7 +758,7 @@ function commons_blog_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', @@ -916,10 +928,9 @@ function commons_blog_views_default_views() { $view->name = 'group_block_blog_latest'; $view->description = 'The latest group blog posts block'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1177,10 +1188,10 @@ function commons_blog_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1204,8 +1215,8 @@ function commons_blog_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1315,10 +1326,9 @@ function commons_blog_views_default_views() { $view->name = 'group_block_blog_latest_comments'; $view->description = 'The latest comments on group blog posts'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1508,10 +1518,10 @@ function commons_blog_views_default_views() { 'relationship' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1534,8 +1544,8 @@ function commons_blog_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1624,6 +1634,20 @@ function commons_blog_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -1663,10 +1687,9 @@ function commons_blog_views_default_views() { $view->name = 'group_tab_blogs'; $view->description = 'Show a tab for group blog posts'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1950,8 +1973,8 @@ function commons_blog_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -2011,10 +2034,10 @@ function commons_blog_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -2038,8 +2061,8 @@ function commons_blog_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -2167,7 +2190,7 @@ function commons_blog_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', diff --git a/modules/features/commons_core/commons_core.views_default.inc b/modules/features/commons_core/commons_core.views_default.inc index 9f9a935..071f764 100644 --- a/modules/features/commons_core/commons_core.views_default.inc +++ b/modules/features/commons_core/commons_core.views_default.inc @@ -4373,6 +4373,20 @@ function commons_core_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', diff --git a/modules/features/commons_discussion/commons_discussion.views_default.inc b/modules/features/commons_discussion/commons_discussion.views_default.inc index 232805c..c06bb37 100644 --- a/modules/features/commons_discussion/commons_discussion.views_default.inc +++ b/modules/features/commons_discussion/commons_discussion.views_default.inc @@ -11,10 +11,9 @@ function commons_discussion_views_default_views() { $view->name = 'content_discussion_page'; $view->description = 'A global view of all site discussions'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -290,8 +289,8 @@ function commons_discussion_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -451,7 +450,7 @@ function commons_discussion_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', @@ -621,10 +620,9 @@ function commons_discussion_views_default_views() { $view->name = 'discussion_latest_comments'; $view->description = 'The latest comments on all discussions'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -922,10 +920,9 @@ function commons_discussion_views_default_views() { $view->name = 'group_block_disc_latest_comments'; $view->description = 'The latest comments on group discussions'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1121,10 +1118,10 @@ function commons_discussion_views_default_views() { 'relationship' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1147,8 +1144,8 @@ function commons_discussion_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1237,6 +1234,20 @@ function commons_discussion_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -1276,10 +1287,9 @@ function commons_discussion_views_default_views() { $view->name = 'group_block_discussion_latest'; $view->description = 'The latest group discussions block'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1537,10 +1547,10 @@ function commons_discussion_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1564,8 +1574,8 @@ function commons_discussion_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1675,10 +1685,9 @@ function commons_discussion_views_default_views() { $view->name = 'group_tab_discussions'; $view->description = 'Show a tab for group discussions'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1962,8 +1971,8 @@ function commons_discussion_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -2023,10 +2032,10 @@ function commons_discussion_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -2050,8 +2059,8 @@ function commons_discussion_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -2179,7 +2188,7 @@ function commons_discussion_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', diff --git a/modules/features/commons_document/commons_document.views_default.inc b/modules/features/commons_document/commons_document.views_default.inc index 2eaa1ed..f9e6963 100644 --- a/modules/features/commons_document/commons_document.views_default.inc +++ b/modules/features/commons_document/commons_document.views_default.inc @@ -11,10 +11,9 @@ function commons_document_views_default_views() { $view->name = 'content_document_page'; $view->description = 'A global view of all site documents'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -290,8 +289,8 @@ function commons_document_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -451,7 +450,7 @@ function commons_document_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', @@ -621,10 +620,9 @@ function commons_document_views_default_views() { $view->name = 'document_latest_comments'; $view->description = 'The latest comments on all documents'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -883,6 +881,20 @@ function commons_document_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -922,10 +934,9 @@ function commons_document_views_default_views() { $view->name = 'group_block_doc_latest_comments'; $view->description = 'The latest comments on group documents'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1121,10 +1132,10 @@ function commons_document_views_default_views() { 'relationship' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1147,8 +1158,8 @@ function commons_document_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1234,6 +1245,20 @@ function commons_document_views_default_views() { 'field' => 'type', 'relationship' => 'nid', ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -1273,10 +1298,9 @@ function commons_document_views_default_views() { $view->name = 'group_block_document_latest'; $view->description = 'The latest group documents block'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1534,10 +1558,10 @@ function commons_document_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1561,8 +1585,8 @@ function commons_document_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1672,10 +1696,9 @@ function commons_document_views_default_views() { $view->name = 'group_tab_documents'; $view->description = 'Show a tab for group documents'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1959,8 +1982,8 @@ function commons_document_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -2020,10 +2043,10 @@ function commons_document_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -2047,8 +2070,8 @@ function commons_document_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -2176,7 +2199,7 @@ function commons_document_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', diff --git a/modules/features/commons_event/commons_event.views_default.inc b/modules/features/commons_event/commons_event.views_default.inc index 3c677e3..7846f13 100644 --- a/modules/features/commons_event/commons_event.views_default.inc +++ b/modules/features/commons_event/commons_event.views_default.inc @@ -11,10 +11,9 @@ function commons_event_views_default_views() { $view->name = 'content_event_calendar'; $view->description = 'A multi-dimensional calendar view with back/next navigation.'; $view->tag = 'Calendar'; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -132,8 +131,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '1' => 0, + 2 => 0, + 1 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', @@ -143,8 +142,8 @@ function commons_event_views_default_views() { 'default_options_div_prefix' => '', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, @@ -290,7 +289,7 @@ function commons_event_views_default_views() { 'name' => 'navigation', )); $handler->override_option('calendar_colors', array( - '0' => array(), + 0 => array(), )); $handler->override_option('calendar_colors_vocabulary', array()); $handler->override_option('calendar_colors_taxonomy', array()); @@ -577,10 +576,9 @@ function commons_event_views_default_views() { $view->name = 'content_event_page'; $view->description = 'A global calendar for all site events'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -952,8 +950,8 @@ function commons_event_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -1309,10 +1307,9 @@ function commons_event_views_default_views() { $view->name = 'event_latest'; $view->description = 'Global recently created events'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1567,10 +1564,9 @@ function commons_event_views_default_views() { $view->name = 'event_latest_comments'; $view->description = 'The latest comments on all events'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1829,6 +1825,20 @@ function commons_event_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -1868,10 +1878,9 @@ function commons_event_views_default_views() { $view->name = 'event_my_upcoming_events'; $view->description = 'My upcoming events'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -2256,10 +2265,9 @@ function commons_event_views_default_views() { $view->name = 'event_past_events'; $view->description = 'Past events'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -2552,10 +2560,9 @@ function commons_event_views_default_views() { $view->name = 'group_block_events_latest'; $view->description = 'Recently created events for groups'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -2727,10 +2734,10 @@ function commons_event_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -2754,8 +2761,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -2848,10 +2855,9 @@ function commons_event_views_default_views() { $view->name = 'group_block_events_past'; $view->description = 'Past events for groups'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -3023,10 +3029,10 @@ function commons_event_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -3050,8 +3056,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -3182,10 +3188,9 @@ function commons_event_views_default_views() { $view->name = 'group_block_events_upcoming'; $view->description = 'Upcoming events for groups'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -3357,10 +3362,10 @@ function commons_event_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -3384,8 +3389,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -3515,10 +3520,9 @@ function commons_event_views_default_views() { $view->name = 'group_block_evt_latest_comments'; $view->description = 'The latest comments on group events'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -3714,10 +3718,10 @@ function commons_event_views_default_views() { 'relationship' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -3740,8 +3744,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -3830,6 +3834,20 @@ function commons_event_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -3869,10 +3887,9 @@ function commons_event_views_default_views() { $view->name = 'group_event_calendar'; $view->description = 'Show a tab for a group event calendar'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -3963,8 +3980,8 @@ function commons_event_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', @@ -3985,8 +4002,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '1' => 0, + 2 => 0, + 1 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -4045,8 +4062,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '1' => 0, + 2 => 0, + 1 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', @@ -4056,8 +4073,8 @@ function commons_event_views_default_views() { 'default_options_div_prefix' => '', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, @@ -4182,7 +4199,7 @@ function commons_event_views_default_views() { 'name' => 'navigation', )); $handler->override_option('calendar_colors', array( - '0' => array(), + 0 => array(), )); $handler->override_option('calendar_colors_vocabulary', array()); $handler->override_option('calendar_colors_taxonomy', array()); @@ -4210,10 +4227,10 @@ function commons_event_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'relationship' => 'none', 'default_options_div_prefix' => '', @@ -4234,8 +4251,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -4294,8 +4311,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '1' => 0, + 2 => 0, + 1 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', @@ -4305,8 +4322,8 @@ function commons_event_views_default_views() { 'default_options_div_prefix' => '', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_transform' => 0, 'validate_user_restrict_roles' => 0, @@ -4516,10 +4533,9 @@ function commons_event_views_default_views() { $view->name = 'group_tab_events'; $view->description = 'Show a tab for group events'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -4858,8 +4874,8 @@ function commons_event_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -4904,10 +4920,10 @@ function commons_event_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -4931,8 +4947,8 @@ function commons_event_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -5157,10 +5173,9 @@ function commons_event_views_default_views() { $view->name = 'upcoming_events'; $view->description = 'Upcoming events'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( diff --git a/modules/features/commons_poll/commons_poll.views_default.inc b/modules/features/commons_poll/commons_poll.views_default.inc index 4a5e1a1..69fac03 100644 --- a/modules/features/commons_poll/commons_poll.views_default.inc +++ b/modules/features/commons_poll/commons_poll.views_default.inc @@ -11,10 +11,9 @@ function commons_poll_views_default_views() { $view->name = 'content_poll_page'; $view->description = 'A global view of all site polls'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -290,8 +289,8 @@ function commons_poll_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -451,7 +450,7 @@ function commons_poll_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', @@ -621,10 +620,9 @@ function commons_poll_views_default_views() { $view->name = 'group_block_poll_latest'; $view->description = 'The latest group poll block'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -882,10 +880,10 @@ function commons_poll_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -909,8 +907,8 @@ function commons_poll_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1035,10 +1033,9 @@ function commons_poll_views_default_views() { $view->name = 'group_block_poll_latest_comments'; $view->description = 'The latest comments on group polls'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1234,10 +1231,10 @@ function commons_poll_views_default_views() { 'relationship' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1260,8 +1257,8 @@ function commons_poll_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1350,6 +1347,20 @@ function commons_poll_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -1389,10 +1400,9 @@ function commons_poll_views_default_views() { $view->name = 'group_block_polls_latest'; $view->description = 'The latest group polls block'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1650,10 +1660,10 @@ function commons_poll_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1677,8 +1687,8 @@ function commons_poll_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1789,10 +1799,9 @@ function commons_poll_views_default_views() { $view->name = 'group_tab_polls'; $view->description = 'Show a tab for group polls'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -2076,8 +2085,8 @@ function commons_poll_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -2137,10 +2146,10 @@ function commons_poll_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -2164,8 +2173,8 @@ function commons_poll_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -2293,7 +2302,7 @@ function commons_poll_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', @@ -2358,10 +2367,9 @@ function commons_poll_views_default_views() { $view->name = 'poll_latest_comments'; $view->description = 'The latest comments on all polls'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -2620,6 +2628,20 @@ function commons_poll_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', diff --git a/modules/features/commons_wiki/commons_wiki.views_default.inc b/modules/features/commons_wiki/commons_wiki.views_default.inc index 4c0b147..ea6f19d 100644 --- a/modules/features/commons_wiki/commons_wiki.views_default.inc +++ b/modules/features/commons_wiki/commons_wiki.views_default.inc @@ -11,10 +11,9 @@ function commons_wiki_views_default_views() { $view->name = 'content_wiki_page'; $view->description = 'A global view of all site wikis'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -290,8 +289,8 @@ function commons_wiki_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -451,7 +450,7 @@ function commons_wiki_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', @@ -621,10 +620,9 @@ function commons_wiki_views_default_views() { $view->name = 'group_block_wiki_latest'; $view->description = 'The latest group wikis block'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -882,10 +880,10 @@ function commons_wiki_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -909,8 +907,8 @@ function commons_wiki_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1021,10 +1019,9 @@ function commons_wiki_views_default_views() { $view->name = 'group_block_wiki_latest_comments'; $view->description = 'The latest comments on group wikis'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1220,10 +1217,10 @@ function commons_wiki_views_default_views() { 'relationship' => 'nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1246,8 +1243,8 @@ function commons_wiki_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1336,6 +1333,20 @@ function commons_wiki_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm', @@ -1375,10 +1386,9 @@ function commons_wiki_views_default_views() { $view->name = 'group_tab_wikis'; $view->description = 'Show a tab for group wikis'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'node'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -1662,8 +1672,8 @@ function commons_wiki_views_default_views() { 'link_to_taxonomy' => 1, 'limit' => 0, 'vids' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'exclude' => 0, 'id' => 'tid', @@ -1723,10 +1733,10 @@ function commons_wiki_views_default_views() { 'field' => 'group_nid', 'validate_user_argument_type' => 'uid', 'validate_user_roles' => array( - '2' => 0, - '3' => 0, - '4' => 0, - '5' => 0, + 2 => 0, + 3 => 0, + 4 => 0, + 5 => 0, ), 'override' => array( 'button' => 'Override', @@ -1750,8 +1760,8 @@ function commons_wiki_views_default_views() { 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( - '2' => 0, - '3' => 0, + 2 => 0, + 3 => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_transform' => 0, @@ -1879,7 +1889,7 @@ function commons_wiki_views_default_views() { ), 'type' => 'textfield', 'limit' => TRUE, - 'vid' => '2', + 'vid' => '1', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', @@ -1944,10 +1954,9 @@ function commons_wiki_views_default_views() { $view->name = 'wiki_latest_comments'; $view->description = 'The latest comments on all wikis'; $view->tag = ''; - $view->view_php = ''; $view->base_table = 'comments'; - $view->is_cacheable = FALSE; - $view->api_version = 2; + $view->core = 0; + $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( @@ -2206,6 +2215,20 @@ function commons_wiki_views_default_views() { 'button' => 'Override', ), ), + 'nid' => array( + 'operator' => '=', + 'value' => '', + 'group' => '0', + 'exposed' => FALSE, + 'expose' => array( + 'operator' => FALSE, + 'label' => '', + ), + 'id' => 'nid', + 'table' => 'node_access', + 'field' => 'nid', + 'relationship' => 'nid', + ), )); $handler->override_option('access', array( 'type' => 'perm',