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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tsphethean’s picture

Issue tags: +Field API

Add tag

tsphethean’s picture

An initial pass at this.

tsphethean’s picture

Status: Active » Needs review
yched’s picture

Berdir’s picture

Status: Needs review » Needs work

The last submitted patch, 2: deprecate_field_info-2029835-2.patch, failed testing.

yched’s picture

Issue summary: View changes
Status: Needs work » Postponed

I'd rather wait for the outcome of #2116363: Unified repository of field definitions (cache + API) before messing with this more.

xjm’s picture

Status: Postponed » Closed (duplicate)
Related issues: +#2029835: Deprecate procedural functions which have been moved to the Field class

Marking 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.

xjm’s picture