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.
Problem/Motivation
Currently, the text format is not configured for the sources.
Proposed resolution
add the #format attribute for the sources which has filter_format definition
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#5 | expose_text_format-5.patch | 4.78 KB | Anushka-mp |
#5 | expose_text_format-5-interdiff.txt | 1018 bytes | Anushka-mp |
#3 | expose_text_format-3.patch | 4.69 KB | Anushka-mp |
#3 | expose_text_format-3-interdiff.txt | 4.89 KB | Anushka-mp |
#2 | expose_text_format-2.patch | 2.38 KB | Anushka-mp |
Comments
Comment #1
BerdirThe format needs to be on value, not on format, we just carry format around to be able to set it again at the end. value is the value that we care about and show a text field for.
Comment #2
Anushka-mp CreditAttribution: Anushka-mp commented#format property removed from format to value.
Comment #3
Anushka-mp CreditAttribution: Anushka-mp commented#format added for all the translatable field, tests extended.
Comment #4
BerdirThis is easier and faster if not set when you have a if ($format) around the foreach.
Comment #5
Anushka-mp CreditAttribution: Anushka-mp commentedcheck for the format moved two levels up, and comment added.
Comment #6
BerdirThanks, looks good now.
Comment #9
BerdirChanging status to possible backport.
It's not a priority on our side, but backporting this shouldn't be too hard and can be implemented in a very similar way in 7.x.