Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
theme system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2011 at 23:03 UTC
Updated:
11 Oct 2022 at 20:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
e2thex commentedAttach is a patch (and its make friendly friend).
Comment #2
e2thex commentedComment #3
johnle commentedLooks like this patch can cause duplicate ID's in the h2 DOM element. Would it make more sense to pass it into the drupal_html_id() function?
Comment #4
robpowellI can't think of an example of why there would be multiple headers in the message container but in case there is I agree with John that drupal_html_id() is the better way to ensure unique id.
Comment #5
jenna.tollersonLooks good!
Comment #6
poker10 commentedActually, this can be achieved easily by overriding the theme function
theme_status_messages().I am not sure we want to add this extra markup, as most sites won't benefit from this without additional effort. I suppose that sites with custom themes that needed this have already done this and other sites probably does not need this (and this patch would not help them either, because they will need to modify their themes also - which is similar effort to overriding the
theme_status_messages()function). Lets discuss it a bit more.