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.
In embeddable_pre_render_text_format
, the $element is not properly altered with the embedded form (looks like perhaps a bad copy/paste from a page alter?).
Comment | File | Size | Author |
---|---|---|---|
#2 | embeddable-1528830-2-pre_render_text_format_fix.patch | 1.14 KB | walkah |
#1 | embeddable-1528830-pre_render_text_format_fix.patch | 537 bytes | walkah |
Comments
Comment #1
walkah CreditAttribution: walkah commentedpatch attached.
Comment #2
walkah CreditAttribution: walkah commentedreworked this patch a bit to ... you know... work. the embeddable form shouldn't get embedded in an existing form, but rather be added once via page_alter. added a function to track whether or not the form should be embedded and moved the actual form creation to hook_page_alter.