Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
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
drupal-3443915
Commits
c9aed209
Commit
c9aed209
authored
13 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1018050
by sun: Provide node type/bundle in comment_entity_info().
parent
bf951e14
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
modules/comment/comment.module
+3
-0
3 additions, 0 deletions
modules/comment/comment.module
with
3 additions
and
0 deletions
modules/comment/comment.module
+
3
−
0
View file @
c9aed209
...
...
@@ -118,6 +118,9 @@ function comment_entity_info() {
foreach
(
node_type_get_names
()
as
$type
=>
$name
)
{
$return
[
'comment'
][
'bundles'
][
'comment_node_'
.
$type
]
=
array
(
'label'
=>
t
(
'@node_type comment'
,
array
(
'@node_type'
=>
$name
)),
// Provide the node type/bundle name for other modules, so it does not
// have to be extracted manually from the bundle name.
'node bundle'
=>
$type
,
'admin'
=>
array
(
// Place the Field UI paths for comments one level below the
// corresponding paths for nodes, so that they appear in the same set
...
...
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