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.
Field titles are shown in both the table header and as labels on each row, here is a potential fix:
function multifield_table_pre_render_field($element) {
- $multifield_info = field_info_field($element['#field_name']);
- foreach (multifield_type_get_subfields($multifield_info['type']) as $field_name) {
+ foreach (multifield_type_get_subfields($element['#field_name']) as $field_name) {
...
}
}
Comment | File | Size | Author |
---|---|---|---|
#9 | multifield_table-field-title-2470721-8.patch | 613 bytes | Zekvyrin |
#3 | multifield_table-field-title-2470721-3.patch | 685 bytes | kurapov |
#2 | multifield_table-field-title-2470721-2.patch | 2.29 KB | kurapov |
Comments
Comment #1
MustangGB CreditAttribution: MustangGB commentedComment #2
kurapov CreditAttribution: kurapov as a volunteer commentedPacked the above code into a patch.
Comment #3
kurapov CreditAttribution: kurapov as a volunteer commentedWrong options, another commit crept in - fixed patch
Comment #4
kurapov CreditAttribution: kurapov as a volunteer commentedComment #7
Zekvyrin CreditAttribution: Zekvyrin commentedI think what should be done is this.
Comment #9
Zekvyrin CreditAttribution: Zekvyrin commentedSorry, malformed patch.. ignore #7
Comment #11
klonos