Download & Extend

Move hook_field_build_modes() into hook_fieldable_info() ?

Project:Drupal core
Version:7.x-dev
Component:field system
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:Fields in Core

Issue Summary

Once #502522: Allow drupal_alter() on the various Field API declarative hooks is in, there's no need for a separate (currently non cached) hook_field_build_modes().
The list of build modes can be added to hook_fieldable_info(), and modules that add build modes to existing object types can use hook_fieldable_info_alter()

Comments

#1

I found http://drupal.org/node/584296 that references the same hook. The handbook page may need checking?

#2

Status:active» fixed

build modes (that is, 'view modes', now) have been moved to hook_entity_info() in a separate issue.

Re #1: I don't think I get what you mean - wrong link ?

#3

Ooops wrong cut and paste http://drupal.org/node/474582

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#5

Status:closed (fixed)» needs review

#6

Status:needs review» fixed

Unclear why this was reopened.

#7

The comment in the link in #3 talked about hook_fieldable_info having been deprecated by hook_entity_info. So I was thinking that the handbook page needed checking. I did a search here on D.o for the term 'hook_fieldable_info' and came across this thread. Thinking that the people discussing this thread were the experts I thought they may have been able to check that handbook page and update it, or put an issue in the documentation queue about it.

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.