Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Several functions in field.info.inc are now just wrappers to methods in the Field class (e.g. field_info_extra_fields(), field_info_fields()). These should be marked as deprecated.
Proposed resolution
Add @deprecated statement to functions which are just wrappers to class methods.
Comment | File | Size | Author |
---|---|---|---|
#2 | deprecate_field_info-2029835-2.patch | 2.2 KB | tsphethean |
Comments
Comment #1
tsphethean CreditAttribution: tsphethean commentedAdd tag
Comment #2
tsphethean CreditAttribution: tsphethean commentedAn initial pass at this.
Comment #3
tsphethean CreditAttribution: tsphethean commentedComment #4
yched CreditAttribution: yched commentedNote : Opened #2047983: Mark field_info_*_types() / field_info_*_settings() functions as deprecated. with a patch
Comment #5
Berdir2: deprecate_field_info-2029835-2.patch queued for re-testing.
Comment #7
yched CreditAttribution: yched commentedI'd rather wait for the outcome of #2116363: Unified repository of field definitions (cache + API) before messing with this more.
Comment #8
xjmMarking as duplicate of #2167167: Remove field_info_*(). Once the new API is available, we'll use that issue to simply convert the existing core usages of the functions and remove them.
Comment #9
xjmAhem.