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.
When using the autocomplete widget (Non multiple), the label of the field is not present.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1287338-element-widget-label.patch | 683 bytes | jsacksick |
Comments
Comment #1
jsacksick CreditAttribution: jsacksick commentedSolution :
Merge the
$element
variable coming from thehook_field_widget_form().
with the element variable returned.Maybe this is unneeded and we should only get the title (And maybe other settings) coming from the variable.
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedThanks for the patch. Indeed, I missed that during testing. Merged a slightly different version in 7.x-1.x.