Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
private_message-3099166
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
private_message-3099166
Commits
3573065c
Commit
3573065c
authored
6 years ago
by
Oleksandr Horbatiuk
Committed by
Jay Friendly
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2972948
by chmez, Ronak.addweb: Entity field weights
parent
76e303dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
private_message.module
+5
-0
5 additions, 0 deletions
private_message.module
with
5 additions
and
0 deletions
private_message.module
+
5
−
0
View file @
3573065c
...
...
@@ -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
,
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment