Index: modules/comment/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v retrieving revision 1.931 diff -u -p -r1.931 comment.module --- modules/comment/comment.module 2 Jan 2011 23:54:05 -0000 1.931 +++ modules/comment/comment.module 7 Jan 2011 01:42:09 -0000 @@ -119,6 +119,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