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.
#type is optional for markup elements. If it's not specified in an element, subform causes drupal_render() to never call drupal_pre_render_markup(). Instead of the expected HTML, the element gets rendered as an empty string.
Comment | File | Size | Author |
---|---|---|---|
#2 | subform-markup_type-2023667-2-d7.patch | 985 bytes | ntsekov |
#1 | 2023667.1-markup-type.patch | 1.3 KB | deviantintegral |
Comments
Comment #1
deviantintegral CreditAttribution: deviantintegral commentedComment #2
ntsekov CreditAttribution: ntsekov commentedI wrote patch for 7.x-1.0-alpha2 version.
Comment #3
jensschuppe CreditAttribution: jensschuppe commentedThis should take into account all element types that define default
#pre_render
callbacks and not just markup. See https://www.drupal.org/node/914792#comment-3540480 for how this should be done: