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.
Theme container adds a div around something. We will be using this for many, many things in core, not just form elements, so it should be moved out of form.inc and into theme.inc.
Here are examples of some things that will be using theme_container:
- theme_more_link
- theme_system_compact_link
- theme_more_help_link
- @todo more
Comment | File | Size | Author |
---|---|---|---|
#1 | core-move_theme_container-2031341-1.patch | 2.53 KB | jenlampton |
Comments
Comment #1
jenlamptonThis may be a blocker for #1595614: [meta] Remove all the theme functions and templates in core that simply output a link. Replace with #type 'link' render arrays
Comment #2
ericrdb CreditAttribution: ericrdb commentedPatch applied, then added forum post, aggregation and content.
Confirmed that there is a More link wrapped by a div
Also, in admin/structure/forum The More Help link is wrapped by a div class "more-help-link"
More to test on this?
Comment #3
jenlamptonI think this is blocking these issues (which need to be in today?), so bumping up priority:
Comment #4
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks!