diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 4a5cbd9d156a98c062eaf71919ff4b3341972cf8..2aa1bd8a20a573f3c636f618925c75e7ccf9a627 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