Skip to content
Snippets Groups Projects
Commit 3573065c authored by Oleksandr Horbatiuk's avatar Oleksandr Horbatiuk Committed by Jay Friendly
Browse files

Issue #2972948 by chmez, Ronak.addweb: Entity field weights

parent 76e303dd
No related branches found
No related tags found
No related merge requests found
......@@ -60,18 +60,21 @@ function private_message_entity_extra_field_info() {
$fields['user'][$bundle]['display']['linked_username'] = [
'label' => t('Username (linked if viewer has permission)'),
'description' => t('Displays the username, linked to the user profile if the viewer has permission to access user profiles'),
'weight' => 0,
'visible' => FALSE,
];
$fields['user'][$bundle]['display']['private_message_link'] = [
'label' => t('Private message thread link'),
'description' => t('Displays a link to send a private message to the user'),
'weight' => 0,
'visible' => FALSE,
];
$fields['user'][$bundle]['form']['private_messages'] = [
'label' => t('Private messages'),
'description' => t('Settings related to private messages'),
'weight' => 0,
'visible' => TRUE,
];
}
......@@ -81,6 +84,7 @@ function private_message_entity_extra_field_info() {
$fields['node'][$bundle]['display']['private_message_link'] = [
'label' => t('Private message thread link'),
'description' => t('Displays a link to send a private message to the node author'),
'weight' => 0,
'visible' => FALSE,
];
}
......@@ -90,6 +94,7 @@ function private_message_entity_extra_field_info() {
$fields['comment'][$bundle]['display']['private_message_link'] = [
'label' => t('Private message thread link'),
'description' => t('Displays a link to send a private message to the node author'),
'weight' => 0,
'visible' => FALSE,
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment