summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-09-30 13:07:42 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-09-30 13:07:42 -0700
commitc9aed20995c51dcc1f1241bec5e4a4ca375afb2c (patch)
tree57f0fa70b4aea104732269c8e3133bc357205949 /modules/comment/comment.module
parentbf951e14ad3bc0f8e3af5ac58480d7a43c70550a (diff)
downloadbrdo-c9aed20995c51dcc1f1241bec5e4a4ca375afb2c.tar.gz
brdo-c9aed20995c51dcc1f1241bec5e4a4ca375afb2c.tar.bz2
Issue #1018050 by sun: Provide node type/bundle in comment_entity_info().
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 59c9ad7c7..4692d3313 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -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