From f6180bf31d7fe5b9e3821984377ab824f3e3e719 Mon Sep 17 00:00:00 2001 From: argiepiano Date: Wed, 18 May 2022 22:13:31 -0600 Subject: [PATCH] Issue #91. Remove PHP definition of view og_members_admin and added Request Message field --- config/views.view.og_members_admin.json | 1339 ++++++++++++----------- includes/views/og.views_default.inc | 520 --------- 2 files changed, 701 insertions(+), 1158 deletions(-) delete mode 100644 includes/views/og.views_default.inc diff --git a/config/views.view.og_members_admin.json b/config/views.view.og_members_admin.json index 769fb1a9..da8e401f 100644 --- a/config/views.view.og_members_admin.json +++ b/config/views.view.og_members_admin.json @@ -1,640 +1,703 @@ { - "_config_name": "views.view.og_members_admin", - "name": "og_members_admin", - "description": "", - "module": "og", - "storage": 2, - "tag": "og", - "disabled": false, - "base_table": "users", - "human_name": "OG members admin", - "core": "1", - "display": { - "default": { - "display_title": "Master", - "display_plugin": "default", - "display_options": { - "query": { - "type": "views_query", - "options": { - "query_comment": false - } - }, - "title": "OG members admin", - "access": { - "type": "none" - }, - "cache": { - "type": "none" - }, - "exposed_form": { - "type": "basic" - }, - "pager": { - "type": "full", - "options": { - "items_per_page": "25", - "offset": "0", - "id": "0" - } - }, - "style_plugin": "table", - "style_options": { - "columns": { - "views_bulk_operations": "views_bulk_operations", - "name": "name", - "state": "state", - "og_roles": "og_roles", - "created": "created", - "og_membership_request": "og_membership_request", - "edit_membership": "edit_membership", - "delete_membership": "edit_membership" - }, - "default": "name", - "info": { - "views_bulk_operations": { - "align": "", - "separator": "", - "empty_column": 0 - }, - "name": { - "sortable": 1, - "default_sort_order": "asc", - "align": "", - "separator": "", - "empty_column": 0 - }, - "state": { - "sortable": 1, - "default_sort_order": "asc", - "align": "", - "separator": "", - "empty_column": 0 - }, - "og_roles": { - "align": "", - "separator": "", - "empty_column": 0 - }, - "created": { - "sortable": 1, - "default_sort_order": "asc", - "align": "", - "separator": "", - "empty_column": 0 - }, - "og_membership_request": { - "sortable": 0, - "default_sort_order": "asc", - "align": "", - "separator": "", - "empty_column": 0 - }, - "edit_membership": { - "align": "", - "separator": " ", - "empty_column": 0 - }, - "delete_membership": { - "align": "", - "separator": "", - "empty_column": 0 - } - } - }, - "header": { - "og_membership_overview": { - "id": "og_membership_overview", - "table": "og_membership", - "field": "og_membership_overview", - "relationship": "none", - "group_type": "group", - "ui_name": "", - "label": "", - "manager": 1, - "total_members_1": 1, - "total_members_2": 1, - "total_members_3": 1, - "total_members": 1, - "total_content": 1 - } - }, - "empty": { - "area": { - "id": "area", - "table": "views", - "field": "area", - "empty": false, - "content": "No people found matching the search criteria.", - "format": "filtered_html" - } - }, - "relationships": { - "og_membership_rel": { - "id": "og_membership_rel", - "table": "users", - "field": "og_membership_rel", - "relationship": "none", - "group_type": "group", - "ui_name": "", - "label": "OG membership from user", - "required": 0 - } - }, - "fields": { - "og_membership_bulk_form": { - "id": "og_membership_bulk_form", - "table": "og_membership", - "field": "og_membership_bulk_form", - "relationship": "og_membership_rel", - "group_type": "group", - "ui_name": "", - "label": "Bulk operations", - "exclude": 0, - "alter": { - "alter_text": 0, - "text": "", - "make_link": 0, - "path": "", - "absolute": 0, - "external": 0, - "replace_spaces": 0, - "path_case": "none", - "trim_whitespace": 0, - "alt": "", - "rel": "", - "link_class": "", - "prefix": "", - "suffix": "", - "target": "", - "nl2br": 0, - "max_length": "", - "word_boundary": 1, - "ellipsis": 1, - "more_link": 0, - "more_link_text": "", - "more_link_path": "", - "strip_tags": 0, - "trim": 0, - "preserve_tags": "", - "html": 0 - }, - "element_type": "", - "element_class": "", - "element_label_type": "", - "element_label_class": "", - "element_label_colon": 1, - "element_wrapper_type": "", - "element_wrapper_class": "", - "element_default_classes": 1, - "empty": "", - "hide_empty": 0, - "empty_zero": 0, - "hide_alter_empty": 1, - "include_exclude": "exclude", - "selected_actions": [] - }, - "name": { - "id": "name", - "table": "users", - "field": "name", - "alter": { - "word_boundary": false, - "ellipsis": false - } - }, - "state": { - "id": "state", - "table": "og_membership", - "field": "state", - "relationship": "og_membership_rel", - "group_type": "group", - "ui_name": "", - "label": "State", - "exclude": 0, - "alter": { - "alter_text": 0, - "text": "", - "make_link": 0, - "path": "", - "absolute": 0, - "external": 0, - "replace_spaces": 0, - "path_case": "none", - "trim_whitespace": 0, - "alt": "", - "rel": "", - "link_class": "", - "prefix": "", - "suffix": "", - "target": "", - "nl2br": 0, - "max_length": "", - "word_boundary": 1, - "ellipsis": 1, - "more_link": 0, - "more_link_text": "", - "more_link_path": "", - "strip_tags": 0, - "trim": 0, - "preserve_tags": "", - "html": 0 - }, - "element_type": "", - "element_class": "", - "element_label_type": "", - "element_label_class": "", - "element_label_colon": 1, - "element_wrapper_type": "", - "element_wrapper_class": "", - "element_default_classes": 1, - "empty": "", - "hide_empty": 0, - "empty_zero": 0, - "hide_alter_empty": 1 - }, - "og_roles": { - "id": "og_roles", - "table": "og_membership", - "field": "og_roles", - "relationship": "og_membership_rel", - "group_type": "group", - "ui_name": "", - "label": "Roles", - "exclude": 0, - "alter": { - "alter_text": 0, - "text": "", - "make_link": 0, - "path": "", - "absolute": 0, - "external": 0, - "replace_spaces": 0, - "path_case": "none", - "trim_whitespace": 0, - "alt": "", - "rel": "", - "link_class": "", - "prefix": "", - "suffix": "", - "target": "", - "nl2br": 0, - "max_length": "", - "word_boundary": 1, - "ellipsis": 1, - "more_link": 0, - "more_link_text": "", - "more_link_path": "", - "strip_tags": 0, - "trim": 0, - "preserve_tags": "", - "html": 0 - }, - "element_type": "", - "element_class": "", - "element_label_type": "", - "element_label_class": "", - "element_label_colon": 1, - "element_wrapper_type": "", - "element_wrapper_class": "", - "element_default_classes": 1, - "empty": "", - "hide_empty": 0, - "empty_zero": 0, - "hide_alter_empty": 1, - "type": "ul", - "separator": ", " - }, - "created": { - "id": "created", - "table": "og_membership", - "field": "created", - "relationship": "og_membership_rel", - "group_type": "group", - "ui_name": "", - "label": "Member since", - "exclude": 0, - "alter": { - "alter_text": 0, - "text": "", - "make_link": 0, - "path": "", - "absolute": 0, - "external": 0, - "replace_spaces": 0, - "path_case": "none", - "trim_whitespace": 0, - "alt": "", - "rel": "", - "link_class": "", - "prefix": "", - "suffix": "", - "target": "", - "nl2br": 0, - "max_length": "", - "word_boundary": 1, - "ellipsis": 1, - "more_link": 0, - "more_link_text": "", - "more_link_path": "", - "strip_tags": 0, - "trim": 0, - "preserve_tags": "", - "html": 0 - }, - "element_type": "", - "element_class": "", - "element_label_type": "", - "element_label_class": "", - "element_label_colon": 1, - "element_wrapper_type": "", - "element_wrapper_class": "", - "element_default_classes": 1, - "empty": "", - "hide_empty": 0, - "empty_zero": 0, - "hide_alter_empty": 1, - "date_format": "time ago", - "custom_date_format": "", - "timezone": "" - }, - "edit_membership": { - "id": "edit_membership", - "table": "og_membership", - "field": "edit_membership", - "relationship": "og_membership_rel", - "group_type": "group", - "ui_name": "", - "label": "", - "exclude": 0, - "alter": { - "alter_text": 0, - "text": "", - "make_link": 0, - "path": "", - "absolute": 0, - "external": 0, - "replace_spaces": 0, - "path_case": "none", - "trim_whitespace": 0, - "alt": "", - "rel": "", - "link_class": "", - "prefix": "", - "suffix": "", - "target": "", - "nl2br": 0, - "max_length": "", - "word_boundary": 1, - "ellipsis": 1, - "more_link": 0, - "more_link_text": "", - "more_link_path": "", - "strip_tags": 0, - "trim": 0, - "preserve_tags": "", - "html": 0 - }, - "element_type": "", - "element_class": "", - "element_label_type": "", - "element_label_class": "", - "element_label_colon": false, - "element_wrapper_type": "", - "element_wrapper_class": "", - "element_default_classes": 1, - "empty": "", - "hide_empty": 0, - "empty_zero": 0, - "hide_alter_empty": 1, - "text": "", - "destination": 0 - }, - "delete_membership": { - "id": "delete_membership", - "table": "og_membership", - "field": "delete_membership", - "relationship": "og_membership_rel", - "group_type": "group", - "ui_name": "", - "label": "", - "exclude": 0, - "alter": { - "alter_text": 0, - "text": "", - "make_link": 0, - "path": "", - "absolute": 0, - "external": 0, - "replace_spaces": 0, - "path_case": "none", - "trim_whitespace": 0, - "alt": "", - "rel": "", - "link_class": "", - "prefix": "", - "suffix": "", - "target": "", - "nl2br": 0, - "max_length": "", - "word_boundary": 1, - "ellipsis": 1, - "more_link": 0, - "more_link_text": "", - "more_link_path": "", - "strip_tags": 0, - "trim": 0, - "preserve_tags": "", - "html": 0 - }, - "element_type": "", - "element_class": "", - "element_label_type": "", - "element_label_class": "", - "element_label_colon": false, - "element_wrapper_type": "", - "element_wrapper_class": "", - "element_default_classes": 1, - "empty": "", - "hide_empty": 0, - "empty_zero": 0, - "hide_alter_empty": 1, - "text": "", - "destination": 0 - } - }, - "sorts": { - "name": { - "id": "name", - "table": "users", - "field": "name" - } - }, - "arguments": { - "group_type": { - "id": "group_type", - "table": "og_membership", - "field": "group_type", - "relationship": "og_membership_rel", - "group_type": "group", - "ui_name": "", - "default_action": "not found", - "exception": { - "value": "all", - "title_enable": 0, - "title": "All" - }, - "title_enable": 0, - "title": "", - "breadcrumb_enable": 0, - "breadcrumb": "", - "default_argument_type": "fixed", - "default_argument_options": { - "argument": "" - }, - "default_argument_skip_url": 0, - "summary_options": { - "base_path": "", - "count": "1", - "items_per_page": "25", - "override": 0 - }, - "summary": { - "sort_order": "asc", - "number_of_records": "0", - "format": "default_summary" - }, - "specify_validation": 0, - "validate": { - "type": "none", - "fail": "not found" - }, - "validate_options": [], - "glossary": 0, - "limit": "0", - "case": "none", - "transform_dash": 0, - "break_phrase": 0 - }, - "gid": { - "id": "gid", - "table": "og_membership", - "field": "gid", - "relationship": "og_membership_rel", - "group_type": "group", - "ui_name": "", - "default_action": "not found", - "exception": { - "value": "all", - "title_enable": 0, - "title": "All" - }, - "title_enable": 0, - "title": "", - "breadcrumb_enable": 0, - "breadcrumb": "", - "default_argument_type": "fixed", - "default_argument_options": { - "argument": "" - }, - "default_argument_skip_url": 0, - "summary_options": { - "base_path": "", - "count": "1", - "items_per_page": "25", - "override": 0 - }, - "summary": { - "sort_order": "asc", - "number_of_records": "0", - "format": "default_summary" - }, - "specify_validation": 0, - "validate": { - "type": "none", - "fail": "not found" - }, - "validate_options": [], - "break_phrase": 0, - "not": 0 - } - }, - "filters": { - "status": { - "id": "status", - "table": "users", - "field": "status", - "value": "1", - "group": 1, - "expose": { - "operator": false - } - }, - "state": { - "id": "state", - "table": "og_membership", - "field": "state", - "relationship": "none", - "group_type": "group", - "ui_name": "", - "operator": "in", - "value": [], - "group": 1, - "exposed": true, - "expose": { - "operator_id": "state_op", - "label": "State", - "description": "", - "use_operator": 0, - "operator": "state_op", - "identifier": "state", - "required": 0, - "remember": 0, - "multiple": 0, - "remember_roles": { - "authenticated": "authenticated", - "anonymous": 0, - "editor": 0, - "administrator": 0 - }, - "reduce": 0 - }, - "is_grouped": false, - "group_info": { - "label": "", - "description": "", - "identifier": "", - "optional": true, - "widget": "select", - "multiple": false, - "remember": 0, - "default_group": "All", - "default_group_multiple": [], - "group_items": [] - } - }, - "uid": { - "id": "uid", - "table": "users", - "field": "uid", - "value": "", - "exposed": true, - "expose": { - "operator_id": "uid_op", - "label": "Name", - "operator": "uid_op", - "identifier": "uid" - }, - "group": 1 - } - }, - "filter_groups": { - "operator": "AND", - "groups": { - "1": "AND" - } - } - } - } - } + "_config_name": "views.view.og_members_admin", + "name": "og_members_admin", + "description": "", + "module": "og", + "storage": 2, + "tag": "og", + "disabled": false, + "base_table": "users", + "human_name": "OG members admin", + "core": "1", + "display": { + "default": { + "display_title": "Master", + "display_plugin": "default", + "display_options": { + "query": { + "type": "views_query", + "options": { + "query_comment": false + } + }, + "title": "OG members admin", + "access": { + "type": "none" + }, + "cache": { + "type": "none" + }, + "exposed_form": { + "type": "basic" + }, + "pager": { + "type": "full", + "options": { + "items_per_page": "25", + "offset": "0", + "id": "0" + } + }, + "style_plugin": "table", + "style_options": { + "columns": { + "views_bulk_operations": "views_bulk_operations", + "name": "name", + "state": "state", + "og_roles": "og_roles", + "created": "created", + "og_membership_request": "og_membership_request", + "edit_membership": "edit_membership", + "delete_membership": "edit_membership" + }, + "default": "name", + "info": { + "views_bulk_operations": { + "align": "", + "separator": "", + "empty_column": 0 + }, + "name": { + "sortable": 1, + "default_sort_order": "asc", + "align": "", + "separator": "", + "empty_column": 0 + }, + "state": { + "sortable": 1, + "default_sort_order": "asc", + "align": "", + "separator": "", + "empty_column": 0 + }, + "og_roles": { + "align": "", + "separator": "", + "empty_column": 0 + }, + "created": { + "sortable": 1, + "default_sort_order": "asc", + "align": "", + "separator": "", + "empty_column": 0 + }, + "og_membership_request": { + "sortable": 0, + "default_sort_order": "asc", + "align": "", + "separator": "", + "empty_column": 0 + }, + "edit_membership": { + "align": "", + "separator": " ", + "empty_column": 0 + }, + "delete_membership": { + "align": "", + "separator": "", + "empty_column": 0 + } + } + }, + "header": { + "og_membership_overview": { + "id": "og_membership_overview", + "table": "og_membership", + "field": "og_membership_overview", + "relationship": "none", + "group_type": "group", + "ui_name": "", + "label": "", + "manager": 1, + "total_members_1": 1, + "total_members_2": 1, + "total_members_3": 1, + "total_members": 1, + "total_content": 1 + } + }, + "empty": { + "area": { + "id": "area", + "table": "views", + "field": "area", + "empty": false, + "content": "No people found matching the search criteria.", + "format": "filtered_html" + } + }, + "relationships": { + "og_membership_rel": { + "id": "og_membership_rel", + "table": "users", + "field": "og_membership_rel", + "relationship": "none", + "group_type": "group", + "ui_name": "", + "label": "OG membership from user", + "required": 0 + } + }, + "fields": { + "og_membership_bulk_form": { + "id": "og_membership_bulk_form", + "table": "og_membership", + "field": "og_membership_bulk_form", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "label": "Bulk operations", + "exclude": 0, + "alter": { + "alter_text": 0, + "text": "", + "make_link": 0, + "path": "", + "absolute": 0, + "external": 0, + "replace_spaces": 0, + "path_case": "none", + "trim_whitespace": 0, + "alt": "", + "rel": "", + "link_class": "", + "prefix": "", + "suffix": "", + "target": "", + "nl2br": 0, + "max_length": "", + "word_boundary": 1, + "ellipsis": 1, + "more_link": 0, + "more_link_text": "", + "more_link_path": "", + "strip_tags": 0, + "trim": 0, + "preserve_tags": "", + "html": 0 + }, + "element_type": "", + "element_class": "", + "element_label_type": "", + "element_label_class": "", + "element_label_colon": 1, + "element_wrapper_type": "", + "element_wrapper_class": "", + "element_default_classes": 1, + "empty": "", + "hide_empty": 0, + "empty_zero": 0, + "hide_alter_empty": 1, + "include_exclude": "exclude", + "selected_actions": [] + }, + "name": { + "id": "name", + "table": "users", + "field": "name", + "alter": { + "word_boundary": false, + "ellipsis": false + } + }, + "state": { + "id": "state", + "table": "og_membership", + "field": "state", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "label": "State", + "exclude": 0, + "alter": { + "alter_text": 0, + "text": "", + "make_link": 0, + "path": "", + "absolute": 0, + "external": 0, + "replace_spaces": 0, + "path_case": "none", + "trim_whitespace": 0, + "alt": "", + "rel": "", + "link_class": "", + "prefix": "", + "suffix": "", + "target": "", + "nl2br": 0, + "max_length": "", + "word_boundary": 1, + "ellipsis": 1, + "more_link": 0, + "more_link_text": "", + "more_link_path": "", + "strip_tags": 0, + "trim": 0, + "preserve_tags": "", + "html": 0 + }, + "element_type": "", + "element_class": "", + "element_label_type": "", + "element_label_class": "", + "element_label_colon": 1, + "element_wrapper_type": "", + "element_wrapper_class": "", + "element_default_classes": 1, + "empty": "", + "hide_empty": 0, + "empty_zero": 0, + "hide_alter_empty": 1 + }, + "og_roles": { + "id": "og_roles", + "table": "og_membership", + "field": "og_roles", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "label": "Roles", + "exclude": 0, + "alter": { + "alter_text": 0, + "text": "", + "make_link": 0, + "path": "", + "absolute": 0, + "external": 0, + "replace_spaces": 0, + "path_case": "none", + "trim_whitespace": 0, + "alt": "", + "rel": "", + "link_class": "", + "prefix": "", + "suffix": "", + "target": "", + "nl2br": 0, + "max_length": "", + "word_boundary": 1, + "ellipsis": 1, + "more_link": 0, + "more_link_text": "", + "more_link_path": "", + "strip_tags": 0, + "trim": 0, + "preserve_tags": "", + "html": 0 + }, + "element_type": "", + "element_class": "", + "element_label_type": "", + "element_label_class": "", + "element_label_colon": 1, + "element_wrapper_type": "", + "element_wrapper_class": "", + "element_default_classes": 1, + "empty": "", + "hide_empty": 0, + "empty_zero": 0, + "hide_alter_empty": 1, + "type": "ul", + "separator": ", " + }, + "created": { + "id": "created", + "table": "og_membership", + "field": "created", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "label": "Member since", + "exclude": 0, + "alter": { + "alter_text": 0, + "text": "", + "make_link": 0, + "path": "", + "absolute": 0, + "external": 0, + "replace_spaces": 0, + "path_case": "none", + "trim_whitespace": 0, + "alt": "", + "rel": "", + "link_class": "", + "prefix": "", + "suffix": "", + "target": "", + "nl2br": 0, + "max_length": "", + "word_boundary": 1, + "ellipsis": 1, + "more_link": 0, + "more_link_text": "", + "more_link_path": "", + "strip_tags": 0, + "trim": 0, + "preserve_tags": "", + "html": 0 + }, + "element_type": "", + "element_class": "", + "element_label_type": "", + "element_label_class": "", + "element_label_colon": 1, + "element_wrapper_type": "", + "element_wrapper_class": "", + "element_default_classes": 1, + "empty": "", + "hide_empty": 0, + "empty_zero": 0, + "hide_alter_empty": 1, + "date_format": "time ago", + "custom_date_format": "", + "timezone": "" + }, + "og_membership_request": { + "id": "og_membership_request", + "table": "field_data_og_membership_request", + "field": "og_membership_request", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "label": "Request message", + "exclude": 0, + "alter": { + "alter_text": 0, + "text": "", + "make_link": 0, + "path": "", + "absolute": 0, + "external": 0, + "replace_spaces": 0, + "path_case": "none", + "trim_whitespace": 0, + "alt": "", + "rel": "", + "link_class": "", + "prefix": "", + "suffix": "", + "target": "", + "nl2br": 0, + "max_length": "", + "word_boundary": 1, + "ellipsis": 1, + "more_link": 0, + "more_link_text": "", + "more_link_path": "", + "strip_tags": 0, + "trim": 0, + "preserve_tags": "", + "html": 0 + }, + "element_type": "", + "element_class": "", + "element_label_type": "", + "element_label_class": "", + "element_label_colon": 1, + "element_wrapper_type": "", + "element_wrapper_class": "", + "element_default_classes": 1, + "empty": "", + "hide_empty": 0, + "empty_zero": 0, + "hide_alter_empty": 1, + "click_sort_column": "value", + "type": "text_default", + "settings": [], + "group_column": "value", + "group_columns": [], + "group_rows": true, + "delta_limit": "all", + "delta_offset": 0, + "delta_reversed": false, + "delta_first_last": false, + "multi_type": "separator", + "separator": ", ", + "field_api_classes": 0 + }, + "edit_membership": { + "id": "edit_membership", + "table": "og_membership", + "field": "edit_membership", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "label": "", + "exclude": 0, + "alter": { + "alter_text": 0, + "text": "", + "make_link": 0, + "path": "", + "absolute": 0, + "external": 0, + "replace_spaces": 0, + "path_case": "none", + "trim_whitespace": 0, + "alt": "", + "rel": "", + "link_class": "", + "prefix": "", + "suffix": "", + "target": "", + "nl2br": 0, + "max_length": "", + "word_boundary": 1, + "ellipsis": 1, + "more_link": 0, + "more_link_text": "", + "more_link_path": "", + "strip_tags": 0, + "trim": 0, + "preserve_tags": "", + "html": 0 + }, + "element_type": "", + "element_class": "", + "element_label_type": "", + "element_label_class": "", + "element_label_colon": false, + "element_wrapper_type": "", + "element_wrapper_class": "", + "element_default_classes": 1, + "empty": "", + "hide_empty": 0, + "empty_zero": 0, + "hide_alter_empty": 1, + "text": "", + "destination": 0 + }, + "delete_membership": { + "id": "delete_membership", + "table": "og_membership", + "field": "delete_membership", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "label": "", + "exclude": 0, + "alter": { + "alter_text": 0, + "text": "", + "make_link": 0, + "path": "", + "absolute": 0, + "external": 0, + "replace_spaces": 0, + "path_case": "none", + "trim_whitespace": 0, + "alt": "", + "rel": "", + "link_class": "", + "prefix": "", + "suffix": "", + "target": "", + "nl2br": 0, + "max_length": "", + "word_boundary": 1, + "ellipsis": 1, + "more_link": 0, + "more_link_text": "", + "more_link_path": "", + "strip_tags": 0, + "trim": 0, + "preserve_tags": "", + "html": 0 + }, + "element_type": "", + "element_class": "", + "element_label_type": "", + "element_label_class": "", + "element_label_colon": false, + "element_wrapper_type": "", + "element_wrapper_class": "", + "element_default_classes": 1, + "empty": "", + "hide_empty": 0, + "empty_zero": 0, + "hide_alter_empty": 1, + "text": "", + "destination": 0 + } + }, + "sorts": { + "name": { + "id": "name", + "table": "users", + "field": "name" + } + }, + "arguments": { + "group_type": { + "id": "group_type", + "table": "og_membership", + "field": "group_type", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "default_action": "not found", + "exception": { + "value": "all", + "title_enable": 0, + "title": "All" + }, + "title_enable": 0, + "title": "", + "breadcrumb_enable": 0, + "breadcrumb": "", + "default_argument_type": "fixed", + "default_argument_options": { + "argument": "" + }, + "default_argument_skip_url": 0, + "summary_options": { + "base_path": "", + "count": "1", + "items_per_page": "25", + "override": 0 + }, + "summary": { + "sort_order": "asc", + "number_of_records": "0", + "format": "default_summary" + }, + "specify_validation": 0, + "validate": { + "type": "none", + "fail": "not found" + }, + "validate_options": [], + "glossary": 0, + "limit": "0", + "case": "none", + "transform_dash": 0, + "break_phrase": 0 + }, + "gid": { + "id": "gid", + "table": "og_membership", + "field": "gid", + "relationship": "og_membership_rel", + "group_type": "group", + "ui_name": "", + "default_action": "not found", + "exception": { + "value": "all", + "title_enable": 0, + "title": "All" + }, + "title_enable": 0, + "title": "", + "breadcrumb_enable": 0, + "breadcrumb": "", + "default_argument_type": "fixed", + "default_argument_options": { + "argument": "" + }, + "default_argument_skip_url": 0, + "summary_options": { + "base_path": "", + "count": "1", + "items_per_page": "25", + "override": 0 + }, + "summary": { + "sort_order": "asc", + "number_of_records": "0", + "format": "default_summary" + }, + "specify_validation": 0, + "validate": { + "type": "none", + "fail": "not found" + }, + "validate_options": [], + "break_phrase": 0, + "not": 0 + } + }, + "filters": { + "status": { + "id": "status", + "table": "users", + "field": "status", + "value": "1", + "group": 1, + "expose": { + "operator": false + } + }, + "state": { + "id": "state", + "table": "og_membership", + "field": "state", + "relationship": "none", + "group_type": "group", + "ui_name": "", + "operator": "in", + "value": [], + "group": 1, + "exposed": true, + "expose": { + "operator_id": "state_op", + "label": "State", + "description": "", + "use_operator": 0, + "operator": "state_op", + "identifier": "state", + "required": 0, + "remember": 0, + "multiple": 0, + "remember_roles": { + "authenticated": "authenticated", + "anonymous": 0, + "editor": 0, + "administrator": 0 + }, + "reduce": 0 + }, + "is_grouped": false, + "group_info": { + "label": "", + "description": "", + "identifier": "", + "optional": true, + "widget": "select", + "multiple": false, + "remember": 0, + "default_group": "All", + "default_group_multiple": [], + "group_items": [] + } + }, + "uid": { + "id": "uid", + "table": "users", + "field": "uid", + "value": "", + "exposed": true, + "expose": { + "operator_id": "uid_op", + "label": "Name", + "operator": "uid_op", + "identifier": "uid" + }, + "group": 1 + } + }, + "filter_groups": { + "operator": "AND", + "groups": { + "1": "AND" + } + } + } + } + } } diff --git a/includes/views/og.views_default.inc b/includes/views/og.views_default.inc deleted file mode 100644 index 70955fb2..00000000 --- a/includes/views/og.views_default.inc +++ /dev/null @@ -1,520 +0,0 @@ -name = 'og_members'; - $view->description = 'Newest group members.'; - $view->tag = 'og'; - $view->base_table = 'users'; - $view->human_name = 'OG members'; - $view->core = 0; - $view->api_version = '3.0'; - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ - - /* Display: Defaults */ - $handler = $view->new_display('default', 'Defaults', 'default'); - $handler->display->display_options['access']['type'] = 'none'; - $handler->display->display_options['cache']['type'] = 'none'; - $handler->display->display_options['query']['type'] = 'views_query'; - $handler->display->display_options['query']['options']['query_comment'] = FALSE; - $handler->display->display_options['exposed_form']['type'] = 'basic'; - $handler->display->display_options['pager']['type'] = 'some'; - $handler->display->display_options['pager']['options']['items_per_page'] = '5'; - $handler->display->display_options['pager']['options']['offset'] = '0'; - $handler->display->display_options['style_plugin'] = 'default'; - $handler->display->display_options['row_plugin'] = 'fields'; - /* Relationship: OG membership: OG membership from User */ - $handler->display->display_options['relationships']['og_membership_rel']['id'] = 'og_membership_rel'; - $handler->display->display_options['relationships']['og_membership_rel']['table'] = 'users'; - $handler->display->display_options['relationships']['og_membership_rel']['field'] = 'og_membership_rel'; - $handler->display->display_options['relationships']['og_membership_rel']['required'] = 0; - /* Field: User: Name */ - $handler->display->display_options['fields']['name']['id'] = 'name'; - $handler->display->display_options['fields']['name']['table'] = 'users'; - $handler->display->display_options['fields']['name']['field'] = 'name'; - $handler->display->display_options['fields']['name']['label'] = ''; - $handler->display->display_options['fields']['name']['alter']['alter_text'] = 0; - $handler->display->display_options['fields']['name']['alter']['make_link'] = 0; - $handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1; - $handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1; - $handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0; - $handler->display->display_options['fields']['name']['alter']['trim'] = 0; - $handler->display->display_options['fields']['name']['alter']['html'] = 0; - $handler->display->display_options['fields']['name']['hide_empty'] = 0; - $handler->display->display_options['fields']['name']['empty_zero'] = 0; - $handler->display->display_options['fields']['name']['link_to_user'] = 1; - $handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0; - /* Sort criterion: OG membership: Created */ - $handler->display->display_options['sorts']['created']['id'] = 'created'; - $handler->display->display_options['sorts']['created']['table'] = 'og_membership'; - $handler->display->display_options['sorts']['created']['field'] = 'created'; - $handler->display->display_options['sorts']['created']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['sorts']['created']['order'] = 'DESC'; - /* Contextual filter: OG membership: Group ID */ - $handler->display->display_options['arguments']['gid']['id'] = 'gid'; - $handler->display->display_options['arguments']['gid']['table'] = 'og_membership'; - $handler->display->display_options['arguments']['gid']['field'] = 'gid'; - $handler->display->display_options['arguments']['gid']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['arguments']['gid']['default_action'] = 'not found'; - $handler->display->display_options['arguments']['gid']['title_enable'] = 1; - $handler->display->display_options['arguments']['gid']['title'] = '%1 members'; - $handler->display->display_options['arguments']['gid']['default_argument_type'] = 'fixed'; - $handler->display->display_options['arguments']['gid']['default_argument_skip_url'] = 0; - $handler->display->display_options['arguments']['gid']['summary']['number_of_records'] = '0'; - $handler->display->display_options['arguments']['gid']['summary']['format'] = 'default_summary'; - $handler->display->display_options['arguments']['gid']['summary_options']['items_per_page'] = '25'; - $handler->display->display_options['arguments']['gid']['specify_validation'] = 1; - $handler->display->display_options['arguments']['gid']['validate']['type'] = 'og'; - $handler->display->display_options['arguments']['gid']['break_phrase'] = 0; - $handler->display->display_options['arguments']['gid']['not'] = 0; - /* Filter criterion: User: Active */ - $handler->display->display_options['filters']['status']['id'] = 'status'; - $handler->display->display_options['filters']['status']['table'] = 'users'; - $handler->display->display_options['filters']['status']['field'] = 'status'; - $handler->display->display_options['filters']['status']['value'] = '1'; - /* Filter criterion: OG membership: State */ - $handler->display->display_options['filters']['state']['id'] = 'state'; - $handler->display->display_options['filters']['state']['table'] = 'og_membership'; - $handler->display->display_options['filters']['state']['field'] = 'state'; - $handler->display->display_options['filters']['state']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['filters']['state']['value'] = array( - 1 => '1', - ); - - /* Display: Block */ - $handler = $view->new_display('block', 'Block', 'block_1'); - - if (module_exists('views_content')) { - /* Display: Content pane */ - $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); - $handler->display->display_options['pane_title'] = 'OG members'; - $handler->display->display_options['allow']['use_pager'] = 0; - $handler->display->display_options['allow']['items_per_page'] = 0; - $handler->display->display_options['allow']['offset'] = 0; - $handler->display->display_options['allow']['link_to_view'] = 0; - $handler->display->display_options['allow']['more_link'] = 0; - $handler->display->display_options['allow']['path_override'] = 0; - $handler->display->display_options['allow']['title_override'] = 'title_override'; - $handler->display->display_options['allow']['exposed_form'] = 0; - $handler->display->display_options['allow']['fields_override'] = 0; - $handler->display->display_options['argument_input'] = array( - 'gid' => array( - 'type' => 'context', - 'context' => 'entity:node.nid', - 'context_optional' => 0, - 'panel' => '0', - 'fixed' => '', - 'label' => 'OG membership: Group ID', - ), - ); - } - - $views[$view->name] = $view; - - /* - * View 'og_nodes' - */ - $view = new view; - $view->name = 'og_nodes'; - $view->description = 'Show all content (nodes) of a group.'; - $view->tag = 'og'; - $view->base_table = 'node'; - $view->human_name = 'OG content'; - $view->core = 0; - $view->api_version = '3.0'; - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ - - /* Display: Defaults */ - $handler = $view->new_display('default', 'Defaults', 'default'); - $handler->display->display_options['access']['type'] = 'none'; - $handler->display->display_options['cache']['type'] = 'none'; - $handler->display->display_options['query']['type'] = 'views_query'; - $handler->display->display_options['query']['options']['query_comment'] = FALSE; - $handler->display->display_options['exposed_form']['type'] = 'basic'; - $handler->display->display_options['pager']['type'] = 'full'; - $handler->display->display_options['style_plugin'] = 'default'; - $handler->display->display_options['row_plugin'] = 'node'; - $handler->display->display_options['row_options']['links'] = 1; - $handler->display->display_options['row_options']['comments'] = 0; - /* No results behavior: Global: Text area */ - $handler->display->display_options['empty']['area']['id'] = 'area'; - $handler->display->display_options['empty']['area']['table'] = 'views'; - $handler->display->display_options['empty']['area']['field'] = 'area'; - $handler->display->display_options['empty']['area']['empty'] = FALSE; - $handler->display->display_options['empty']['area']['content'] = 'There is no content in this group.'; - /* Relationship: OG membership: OG membership from Node */ - $handler->display->display_options['relationships']['og_membership_rel']['id'] = 'og_membership_rel'; - $handler->display->display_options['relationships']['og_membership_rel']['table'] = 'node'; - $handler->display->display_options['relationships']['og_membership_rel']['field'] = 'og_membership_rel'; - $handler->display->display_options['relationships']['og_membership_rel']['required'] = 0; - /* Sort criterion: Content: Post date */ - $handler->display->display_options['sorts']['created']['id'] = 'created'; - $handler->display->display_options['sorts']['created']['table'] = 'node'; - $handler->display->display_options['sorts']['created']['field'] = 'created'; - $handler->display->display_options['sorts']['created']['order'] = 'DESC'; - /* Contextual filter: OG membership: Group ID */ - $handler->display->display_options['arguments']['gid']['id'] = 'gid'; - $handler->display->display_options['arguments']['gid']['table'] = 'og_membership'; - $handler->display->display_options['arguments']['gid']['field'] = 'gid'; - $handler->display->display_options['arguments']['gid']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['arguments']['gid']['default_action'] = 'not found'; - $handler->display->display_options['arguments']['gid']['default_argument_type'] = 'fixed'; - $handler->display->display_options['arguments']['gid']['default_argument_skip_url'] = 0; - $handler->display->display_options['arguments']['gid']['summary']['number_of_records'] = '0'; - $handler->display->display_options['arguments']['gid']['summary']['format'] = 'default_summary'; - $handler->display->display_options['arguments']['gid']['summary_options']['items_per_page'] = '25'; - $handler->display->display_options['arguments']['gid']['specify_validation'] = 1; - $handler->display->display_options['arguments']['gid']['validate']['type'] = 'og'; - $handler->display->display_options['arguments']['gid']['break_phrase'] = 0; - $handler->display->display_options['arguments']['gid']['not'] = 0; - /* Filter criterion: Content: Published */ - $handler->display->display_options['filters']['status']['id'] = 'status'; - $handler->display->display_options['filters']['status']['table'] = 'node'; - $handler->display->display_options['filters']['status']['field'] = 'status'; - $handler->display->display_options['filters']['status']['value'] = '1'; - /* Filter criterion: OG membership: Group_type */ - $handler->display->display_options['filters']['group_type']['id'] = 'group_type'; - $handler->display->display_options['filters']['group_type']['table'] = 'og_membership'; - $handler->display->display_options['filters']['group_type']['field'] = 'group_type'; - $handler->display->display_options['filters']['group_type']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['filters']['group_type']['value'] = array( - 'node' => 'node', - ); - - if (module_exists('views_content')) { - /* Display: Content pane */ - $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); - $handler->display->display_options['argument_input'] = array( - 'gid' => array( - 'type' => 'context', - 'context' => 'entity:node.nid', - 'context_optional' => 0, - 'panel' => '0', - 'fixed' => '', - 'label' => 'OG membership: Group ID', - ), - ); - } - - $translatables['og_nodes'] = array( - t('Defaults'), - t('more'), - t('Apply'), - t('Reset'), - t('Sort by'), - t('Asc'), - t('Desc'), - t('Items per page'), - t('- All -'), - t('Offset'), - t('There is no content in this group.'), - t('group membership'), - t('All'), - t('Content pane'), - t('OG nodes'), - t('View panes'), - ); - - $views[$view->name] = $view; - - /* - * View 'og_user_groups' - */ - $view = new view; - $view->name = 'og_user_groups'; - $view->description = 'Show groups of a user.'; - $view->tag = 'og'; - $view->base_table = 'og_membership'; - $view->human_name = 'OG User groups'; - $view->core = 7; - $view->api_version = '3.0'; - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ - - /* Display: Master */ - $handler = $view->new_display('default', 'Master', 'default'); - $handler->display->display_options['access']['type'] = 'perm'; - $handler->display->display_options['cache']['type'] = 'none'; - $handler->display->display_options['query']['type'] = 'views_query'; - $handler->display->display_options['query']['options']['query_comment'] = FALSE; - $handler->display->display_options['exposed_form']['type'] = 'basic'; - $handler->display->display_options['pager']['type'] = 'full'; - $handler->display->display_options['style_plugin'] = 'table'; - $handler->display->display_options['style_options']['columns'] = array( - 'title' => 'title', - 'state' => 'state', - ); - $handler->display->display_options['style_options']['default'] = '-1'; - $handler->display->display_options['style_options']['info'] = array( - 'title' => array( - 'sortable' => 0, - 'default_sort_order' => 'asc', - 'align' => '', - 'separator' => '', - ), - 'state' => array( - 'sortable' => 0, - 'default_sort_order' => 'asc', - 'align' => '', - 'separator' => '', - ), - ); - $handler->display->display_options['style_options']['override'] = 1; - $handler->display->display_options['style_options']['sticky'] = 0; - $handler->display->display_options['style_options']['empty_table'] = 0; - /* No results behavior: Global: Text area */ - $handler->display->display_options['empty']['area']['id'] = 'area'; - $handler->display->display_options['empty']['area']['table'] = 'views'; - $handler->display->display_options['empty']['area']['field'] = 'area'; - $handler->display->display_options['empty']['area']['empty'] = FALSE; - $handler->display->display_options['empty']['area']['content'] = 'User is not a member of any group.'; - /* Relationship: OG membership: Group Node from OG membership */ - $handler->display->display_options['relationships']['og_membership_related_node_group']['id'] = 'og_membership_related_node_group'; - $handler->display->display_options['relationships']['og_membership_related_node_group']['table'] = 'og_membership'; - $handler->display->display_options['relationships']['og_membership_related_node_group']['field'] = 'og_membership_related_node_group'; - $handler->display->display_options['relationships']['og_membership_related_node_group']['required'] = 0; - /* Field: Content: Title */ - $handler->display->display_options['fields']['title']['id'] = 'title'; - $handler->display->display_options['fields']['title']['table'] = 'node'; - $handler->display->display_options['fields']['title']['field'] = 'title'; - $handler->display->display_options['fields']['title']['relationship'] = 'og_membership_related_node_group'; - $handler->display->display_options['fields']['title']['label'] = 'Group'; - $handler->display->display_options['fields']['title']['alter']['alter_text'] = 0; - $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; - $handler->display->display_options['fields']['title']['alter']['absolute'] = 0; - $handler->display->display_options['fields']['title']['alter']['external'] = 0; - $handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0; - $handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0; - $handler->display->display_options['fields']['title']['alter']['nl2br'] = 0; - $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1; - $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1; - $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; - $handler->display->display_options['fields']['title']['alter']['trim'] = 0; - $handler->display->display_options['fields']['title']['alter']['html'] = 0; - $handler->display->display_options['fields']['title']['element_label_colon'] = 1; - $handler->display->display_options['fields']['title']['element_default_classes'] = 1; - $handler->display->display_options['fields']['title']['hide_empty'] = 0; - $handler->display->display_options['fields']['title']['empty_zero'] = 0; - $handler->display->display_options['fields']['title']['hide_alter_empty'] = 0; - $handler->display->display_options['fields']['title']['link_to_node'] = 1; - /* Field: OG membership: Created */ - $handler->display->display_options['fields']['created']['id'] = 'created'; - $handler->display->display_options['fields']['created']['table'] = 'og_membership'; - $handler->display->display_options['fields']['created']['field'] = 'created'; - $handler->display->display_options['fields']['created']['label'] = 'Member since'; - $handler->display->display_options['fields']['created']['alter']['alter_text'] = 0; - $handler->display->display_options['fields']['created']['alter']['make_link'] = 0; - $handler->display->display_options['fields']['created']['alter']['absolute'] = 0; - $handler->display->display_options['fields']['created']['alter']['external'] = 0; - $handler->display->display_options['fields']['created']['alter']['replace_spaces'] = 0; - $handler->display->display_options['fields']['created']['alter']['trim_whitespace'] = 0; - $handler->display->display_options['fields']['created']['alter']['nl2br'] = 0; - $handler->display->display_options['fields']['created']['alter']['word_boundary'] = 1; - $handler->display->display_options['fields']['created']['alter']['ellipsis'] = 1; - $handler->display->display_options['fields']['created']['alter']['strip_tags'] = 0; - $handler->display->display_options['fields']['created']['alter']['trim'] = 0; - $handler->display->display_options['fields']['created']['alter']['html'] = 0; - $handler->display->display_options['fields']['created']['element_label_colon'] = 1; - $handler->display->display_options['fields']['created']['element_default_classes'] = 1; - $handler->display->display_options['fields']['created']['hide_empty'] = 0; - $handler->display->display_options['fields']['created']['empty_zero'] = 0; - $handler->display->display_options['fields']['created']['hide_alter_empty'] = 0; - $handler->display->display_options['fields']['created']['date_format'] = 'time ago'; - /* Sort criterion: Content: Title */ - $handler->display->display_options['sorts']['title']['id'] = 'title'; - $handler->display->display_options['sorts']['title']['table'] = 'node'; - $handler->display->display_options['sorts']['title']['field'] = 'title'; - $handler->display->display_options['sorts']['title']['relationship'] = 'og_membership_related_node_group'; - /* Contextual filter: We pass to the "Entity ID" the User ID. */ - $handler->display->display_options['arguments']['etid']['id'] = 'etid'; - $handler->display->display_options['arguments']['etid']['table'] = 'og_membership'; - $handler->display->display_options['arguments']['etid']['field'] = 'etid'; - $handler->display->display_options['arguments']['etid']['ui_name'] = 'We pass the user ID as the Entity ID.'; - $handler->display->display_options['arguments']['etid']['default_action'] = 'default'; - $handler->display->display_options['arguments']['etid']['title_enable'] = 1; - $handler->display->display_options['arguments']['etid']['title'] = '%1\'s groups'; - $handler->display->display_options['arguments']['etid']['default_argument_type'] = 'current_user'; - $handler->display->display_options['arguments']['etid']['default_argument_skip_url'] = 0; - $handler->display->display_options['arguments']['etid']['summary']['number_of_records'] = '0'; - $handler->display->display_options['arguments']['etid']['summary']['format'] = 'default_summary'; - $handler->display->display_options['arguments']['etid']['summary_options']['items_per_page'] = '25'; - $handler->display->display_options['arguments']['etid']['specify_validation'] = 1; - $handler->display->display_options['arguments']['etid']['validate']['type'] = 'user'; - $handler->display->display_options['arguments']['etid']['validate_options']['restrict_roles'] = 0; - $handler->display->display_options['arguments']['etid']['break_phrase'] = 0; - $handler->display->display_options['arguments']['etid']['not'] = 0; - /* Filter criterion: OG membership: State */ - $handler->display->display_options['filters']['state']['id'] = 'state'; - $handler->display->display_options['filters']['state']['table'] = 'og_membership'; - $handler->display->display_options['filters']['state']['field'] = 'state'; - $handler->display->display_options['filters']['state']['relationship'] = 'og_membership'; - $handler->display->display_options['filters']['state']['value'] = array( - 1 => '1', - ); - /* Filter criterion: Content: Published */ - $handler->display->display_options['filters']['status']['id'] = 'status'; - $handler->display->display_options['filters']['status']['table'] = 'node'; - $handler->display->display_options['filters']['status']['field'] = 'status'; - $handler->display->display_options['filters']['status']['relationship'] = 'og_membership_related_node_group'; - $handler->display->display_options['filters']['status']['value'] = '1'; - /* Filter criterion: OG membership: Entity_type */ - $handler->display->display_options['filters']['entity_type']['id'] = 'entity_type'; - $handler->display->display_options['filters']['entity_type']['table'] = 'og_membership'; - $handler->display->display_options['filters']['entity_type']['field'] = 'entity_type'; - $handler->display->display_options['filters']['entity_type']['value'] = 'user'; - - if (module_exists('views_content')) { - /* Display: Content pane */ - $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); - $handler->display->display_options['argument_input'] = array( - 'etid' => array( - 'type' => 'context', - 'context' => 'entity:user.uid', - 'context_optional' => 0, - 'panel' => '0', - 'fixed' => '', - 'label' => 'We pass to the "Entity ID" the User ID.', - ), - ); - } - - $views[$view->name] = $view; - - /* - * View 'og_all_user_group_content' - */ - $view = new view; - $view->name = 'og_all_user_group_content'; - $view->description = 'Show the content from all the group the current user belongs to'; - $view->tag = 'og'; - $view->base_table = 'node'; - $view->human_name = 'OG all user group content'; - $view->core = 7; - $view->api_version = '3.0'; - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ - - /* Display: Master */ - $handler = $view->new_display('default', 'Master', 'default'); - $handler->display->display_options['access']['type'] = 'perm'; - $handler->display->display_options['cache']['type'] = 'none'; - $handler->display->display_options['query']['type'] = 'views_query'; - $handler->display->display_options['query']['options']['query_comment'] = FALSE; - $handler->display->display_options['exposed_form']['type'] = 'basic'; - $handler->display->display_options['pager']['type'] = 'full'; - $handler->display->display_options['style_plugin'] = 'default'; - $handler->display->display_options['style_options']['grouping'] = 'title_1'; - $handler->display->display_options['row_plugin'] = 'fields'; - $handler->display->display_options['row_options']['hide_empty'] = 0; - $handler->display->display_options['row_options']['default_field_elements'] = 1; - /* Relationship: OG membership: OG membership from Node */ - $handler->display->display_options['relationships']['og_membership_rel']['id'] = 'og_membership_rel'; - $handler->display->display_options['relationships']['og_membership_rel']['table'] = 'node'; - $handler->display->display_options['relationships']['og_membership_rel']['field'] = 'og_membership_rel'; - $handler->display->display_options['relationships']['og_membership_rel']['required'] = 0; - /* Relationship: OG membership: Group Node from OG membership */ - $handler->display->display_options['relationships']['og_membership_related_node_group']['id'] = 'og_membership_related_node_group'; - $handler->display->display_options['relationships']['og_membership_related_node_group']['table'] = 'og_membership'; - $handler->display->display_options['relationships']['og_membership_related_node_group']['field'] = 'og_membership_related_node_group'; - $handler->display->display_options['relationships']['og_membership_related_node_group']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['relationships']['og_membership_related_node_group']['required'] = 0; - /* Field: Content: Title */ - $handler->display->display_options['fields']['title_1']['id'] = 'title_1'; - $handler->display->display_options['fields']['title_1']['table'] = 'node'; - $handler->display->display_options['fields']['title_1']['field'] = 'title'; - $handler->display->display_options['fields']['title_1']['relationship'] = 'og_membership_related_node_group'; - $handler->display->display_options['fields']['title_1']['label'] = ''; - $handler->display->display_options['fields']['title_1']['exclude'] = TRUE; - $handler->display->display_options['fields']['title_1']['alter']['alter_text'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['make_link'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['absolute'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['external'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['replace_spaces'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['trim_whitespace'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['nl2br'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['word_boundary'] = 1; - $handler->display->display_options['fields']['title_1']['alter']['ellipsis'] = 1; - $handler->display->display_options['fields']['title_1']['alter']['strip_tags'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['trim'] = 0; - $handler->display->display_options['fields']['title_1']['alter']['html'] = 0; - $handler->display->display_options['fields']['title_1']['element_label_colon'] = FALSE; - $handler->display->display_options['fields']['title_1']['element_default_classes'] = 1; - $handler->display->display_options['fields']['title_1']['hide_empty'] = 0; - $handler->display->display_options['fields']['title_1']['empty_zero'] = 0; - $handler->display->display_options['fields']['title_1']['hide_alter_empty'] = 0; - $handler->display->display_options['fields']['title_1']['link_to_node'] = 1; - /* Field: Content: Title */ - $handler->display->display_options['fields']['title']['id'] = 'title'; - $handler->display->display_options['fields']['title']['table'] = 'node'; - $handler->display->display_options['fields']['title']['field'] = 'title'; - $handler->display->display_options['fields']['title']['label'] = ''; - $handler->display->display_options['fields']['title']['alter']['alter_text'] = 0; - $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; - $handler->display->display_options['fields']['title']['alter']['absolute'] = 0; - $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0; - $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0; - $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; - $handler->display->display_options['fields']['title']['alter']['trim'] = 0; - $handler->display->display_options['fields']['title']['alter']['html'] = 0; - $handler->display->display_options['fields']['title']['hide_empty'] = 0; - $handler->display->display_options['fields']['title']['empty_zero'] = 0; - $handler->display->display_options['fields']['title']['link_to_node'] = 1; - /* Sort criterion: Content: Post date */ - $handler->display->display_options['sorts']['created']['id'] = 'created'; - $handler->display->display_options['sorts']['created']['table'] = 'node'; - $handler->display->display_options['sorts']['created']['field'] = 'created'; - $handler->display->display_options['sorts']['created']['order'] = 'DESC'; - /* Sort criterion: Content: Title */ - $handler->display->display_options['sorts']['title']['id'] = 'title'; - $handler->display->display_options['sorts']['title']['table'] = 'node'; - $handler->display->display_options['sorts']['title']['field'] = 'title'; - /* Contextual filter: OG membership: Group ID */ - $handler->display->display_options['arguments']['gid']['id'] = 'gid'; - $handler->display->display_options['arguments']['gid']['table'] = 'og_membership'; - $handler->display->display_options['arguments']['gid']['field'] = 'gid'; - $handler->display->display_options['arguments']['gid']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['arguments']['gid']['default_action'] = 'default'; - $handler->display->display_options['arguments']['gid']['default_argument_type'] = 'og_user_groups'; - $handler->display->display_options['arguments']['gid']['default_argument_skip_url'] = 0; - $handler->display->display_options['arguments']['gid']['summary']['number_of_records'] = '0'; - $handler->display->display_options['arguments']['gid']['summary']['format'] = 'default_summary'; - $handler->display->display_options['arguments']['gid']['summary_options']['items_per_page'] = '25'; - $handler->display->display_options['arguments']['gid']['break_phrase'] = 1; - $handler->display->display_options['arguments']['gid']['not'] = 0; - /* Filter criterion: Content: Published */ - $handler->display->display_options['filters']['status']['id'] = 'status'; - $handler->display->display_options['filters']['status']['table'] = 'node'; - $handler->display->display_options['filters']['status']['field'] = 'status'; - $handler->display->display_options['filters']['status']['value'] = 1; - $handler->display->display_options['filters']['status']['group'] = 0; - $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE; - /* Filter criterion: OG membership: State */ - $handler->display->display_options['filters']['state']['id'] = 'state'; - $handler->display->display_options['filters']['state']['table'] = 'og_membership'; - $handler->display->display_options['filters']['state']['field'] = 'state'; - $handler->display->display_options['filters']['state']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['filters']['state']['value'] = array( - 1 => '1', - ); - /* Filter criterion: OG membership: Group_type */ - $handler->display->display_options['filters']['group_type']['id'] = 'group_type'; - $handler->display->display_options['filters']['group_type']['table'] = 'og_membership'; - $handler->display->display_options['filters']['group_type']['field'] = 'group_type'; - $handler->display->display_options['filters']['group_type']['relationship'] = 'og_membership_rel'; - $handler->display->display_options['filters']['group_type']['value'] = array( - 'node' => 'node', - ); - - if (module_exists('views_content')) { - /* Display: Content pane */ - $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); - } - - $views[$view->name] = $view; - - return $views; -}