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.
Somehow, it looks like not all extra fields are returning a description in their info, throwing notices all over the place. I'm not sure if it's babysitting or not and if we should patch core for this instead (or all contrib modules implementing te hook), but this patch at least makes the notices go away.
Comment | File | Size | Author |
---|---|---|---|
entity_field_extra_notice.patch | 773 bytes | swentel | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted and pushed.
Comment #3
kclarkson CreditAttribution: kclarkson commentedI have updated ctools but am still receiving the following: Notice: Undefined index: label in ctools_entity_field_extra_content_type_content_types() (line 39 of sites/all/modules/contrib/ctools/plugins/content_types/entity_context/entity_field_extra.inc).
Comment #4
kclarkson CreditAttribution: kclarkson commentedopen
Comment #5
kristiaanvandeneyndeIt's because you've got an extra field that doesn't have a label set.
https://api.drupal.org/api/drupal/modules!field!field.api.php/function/h...
Though this patch fixes the fact that people do not set a description, which is perhaps forgiveable, we should not account for extra fields not being labelled.