Skip to content

Commit

Permalink
Added sent messages view display and fixed secondary inbox & sent tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mccrodp committed Jul 8, 2016
1 parent 9599ae4 commit 399ee74
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 10 deletions.
333 changes: 328 additions & 5 deletions config/optional/views.view.message_private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ status: true
dependencies:
config:
- field.storage.message.field_message_private_subject
- field.storage.message.field_message_private_to_user
- message.type.private_message
module:
- message
- message_private
- system
_core:
default_config_hash: bVibi5tmBTw8tXLLgtnOwJPfY7PdJAaKIC8KgGX0mS0
default_config_hash: HTL-e5msxtY6C0dAaEixk4g8BGo2CQC7w-5dFQbzHh4
id: message_private
label: 'Message Private'
module: views
Expand Down Expand Up @@ -537,25 +538,26 @@ display:
page_1:
display_plugin: page
id: page_1
display_title: Page
display_title: Inbox
position: 1
display_options:
display_extenders: { }
path: user/%/messages
menu:
type: tab
type: 'default tab'
title: 'Message Inbox'
description: ''
expanded: false
parent: ''
weight: 0
context: '0'
menu_name: account
context: '1'
menu_name: main
tab_options:
type: none
title: ''
description: ''
weight: 0
display_description: ''
cache_metadata:
contexts:
- 'languages:language_content'
Expand All @@ -567,3 +569,324 @@ display:
max-age: 0
tags:
- 'config:field.storage.message.field_message_private_subject'
page_2:
display_plugin: page
id: page_2
display_title: Sent
position: 2
display_options:
display_extenders: { }
path: user/%/messages/sent
display_description: ''
menu:
type: 'default tab'
title: Sent
description: ''
expanded: false
parent: ''
weight: 0
context: '0'
menu_name: main
tab_options:
type: none
title: ''
description: ''
weight: 0
fields:
message_bulk_form_1:
id: message_bulk_form_1
table: message
field: message_bulk_form
relationship: none
group_type: group
admin_label: ''
label: 'Message operations bulk form'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
action_title: 'With selection'
include_exclude: include
selected_actions:
- messaege_delete_action
entity_type: message
plugin_id: message_bulk_form
field_message_private_to_user:
id: field_message_private_to_user
table: message__field_message_private_to_user
field: field_message_private_to_user
relationship: none
group_type: group
admin_label: ''
label: 'To User'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: entity_reference_label
settings:
link: true
group_column: target_id
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
field_message_private_subject:
id: field_message_private_subject
table: message__field_message_private_subject
field: field_message_private_subject
relationship: none
group_type: group
admin_label: ''
label: Subject
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: true
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
get_text:
id: get_text
table: message
field: get_text
relationship: none
group_type: group
admin_label: ''
label: 'Message text'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 500
word_boundary: true
ellipsis: false
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: true
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
entity_type: message
plugin_id: get_text
created:
id: created
table: message_field_data
field: created
relationship: none
group_type: group
admin_label: ''
label: 'Published date'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
date_format: fallback
custom_date_format: ''
timezone: ''
entity_type: message
entity_field: created
plugin_id: date
defaults:
fields: false
cache_metadata:
max-age: 0
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- user.permissions
tags:
- 'config:field.storage.message.field_message_private_subject'
- 'config:field.storage.message.field_message_private_to_user'
4 changes: 3 additions & 1 deletion message_private.install
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ function message_private_uninstall() {
/* @var \Drupal\Core\Field\FieldConfigBase $field */
// If we have the user notify field, purge the data and remove.
if(!empty($field->getName() == 'field_message_private_usr_notify')) {
field_cron(); // Purge previously deleted field tables.
// Purge previously deleted field tables for entity type.
Drupal::entityManager()->getStorage($field->getTargetEntityTypeId())->purgeFieldData($field, 100);
field_cron();
$field->delete();
}
}
Expand Down
6 changes: 3 additions & 3 deletions message_private.links.task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ message_private.messages:
title: 'Messages'

message_private.messages.inbox:
route_name: message_private.messages
base_route: message_private.messages
route_name: message_private.messages.inbox
parent_id: message_private.messages
title: 'Inbox'

message_private.messages.sent:
route_name: message_private.messages.sent
base_route: message_private.messages
parent_id: message_private.messages
title: 'Sent'

# Provide dynamic local tasks.
Expand Down
Loading

0 comments on commit 399ee74

Please sign in to comment.