summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorNathaniel <catch@35733.no-reply.drupal.org>2011-09-28 15:39:49 +0900
committerNathaniel <catch@35733.no-reply.drupal.org>2011-09-28 15:39:49 +0900
commit70619a111380b6f23f08cb8ea4a30f277d7ad399 (patch)
tree0d5d73b42a7c871cf141ccc0db1a84912f8cfb23
parentf5085c003f62b67d6badda76cd57db3fc0c15b9a (diff)
downloaddrupal-70619a111380b6f23f08cb8ea4a30f277d7ad399.tar.gz
drupal-70619a111380b6f23f08cb8ea4a30f277d7ad399.zip
Issue #1018050 by sun: Provide node type/bundle in comment_entity_info().
-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 4a5cbd9d156..2aa1bd8a20a 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