Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Copying from admin_menu.map.inc:
// @todo Make Comment module expose the original node type bundle,
// pretty please.
if (drupal_substr($bundle_name, 0, 13) == 'comment_node_') {
$bundle_name = drupal_substr($bundle_name, 13);
}
Comment | File | Size | Author |
---|---|---|---|
#6 | drupal8.comment-node-bundle.6.patch | 776 bytes | sun |
drupal.comment-node-bundle.0.patch | 951 bytes | sun | |
Comments
Comment #1
sundrupal.comment-node-bundle.0.patch queued for re-testing.
Comment #2
dixon_Comment #3
sunComment #4
sundrupal.comment-node-bundle.0.patch queued for re-testing.
Comment #6
sunRe-rolled against latest branch head.
Comment #7
dixon_To me this looks like a sensible addition. The patch is very simple, and looks good to me.
Comment #8
dixon_The patch applies without offset to D7. So should be ready for straight backport.
Comment #9
catchLooks good to me as well, I'm pretty sure I've had to figure out the node type back from the comment before as well.
Committed to 8.x, moving to 7.x for webchick to consider.
Comment #10
webchickThis seems like a pretty harmless and convenient API addition. I'm comfortable committing to 7.x as well.
Committed/pushed. Thanks!