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.
On http://api.drupal.org/api/function/field_info_fieldable_types/7 it mentions hook_fieldable_info as the source of information to be returned. According to _field_info_collate_types() (http://api.drupal.org/api/function/_field_info_collate_types/7) this is no longer the case and this information is gathered from hook_entity_info.
Comment | File | Size | Author |
---|---|---|---|
#7 | 584296reroll.patch | 14.49 KB | jhodgdon |
#2 | 584296.patch | 19.57 KB | jhodgdon |
Comments
Comment #1
jhodgdonGood catch! Just needs a patch...
Comment #2
jhodgdonHmmm...
There's a lot more than just this problem in the doc in this file. I also noticed that the doc for hook_entity_info() was formatted badly. Here's a patch to fix up all the doc in modules/field/field.info.inc, as well as the hook_entity_info() doc.
Comment #4
jhodgdonThis patch should probably wait until after the next code freeze milestone for a reroll, because applying it (once rerolled) would presumably cause many other patches to need a reroll.
Comment #5
yched CreditAttribution: yched commentedThe convention in core is not to use 3rd person in function summaries.
Those changes are no good:
Comment #6
jhodgdonRE #5 - the convention is to use 3rd person, actually. It's just not very well followed.
http://drupal.org/node/1354
Comment #7
jhodgdonHere's a patch reroll.
Comment #8
yched CreditAttribution: yched commentedGreat cleanup. Thanks !
Comment #9
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.