Field info doc has multiple problems

mikey_p - September 22, 2009 - 07:50
Project:Drupal
Version:7.x-dev
Component:documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Issue tags:Novice
Description

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.

#1

jhodgdon - October 8, 2009 - 14:17
Title:Documentation problem with field_info_fieldable_types» field_info_fieldable_types() doc mentions nonexistent hook_fieldable_info()

Good catch! Just needs a patch...

#2

jhodgdon - October 8, 2009 - 17:47
Title:field_info_fieldable_types() doc mentions nonexistent hook_fieldable_info()» Field info doc has multiple problems
Status:active» needs review

Hmmm...

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.

AttachmentSizeStatusTest resultOperations
584296.patch19.57 KBIdleFailed: Failed to apply patch.View details | Re-test

#3

System Message - October 12, 2009 - 18:55
Status:needs review» needs work

The last submitted patch failed testing.

#4

jhodgdon - October 12, 2009 - 20:46

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

#5

yched - October 24, 2009 - 14:58

The convention in core is not to use 3rd person in function summaries.
Those changes are no good:

- * Clear the field info cache without clearing the field data cache.
+ * Clears the field info cache without clearing the field data cache.

#6

jhodgdon - October 25, 2009 - 21:48

RE #5 - the convention is to use 3rd person, actually. It's just not very well followed.
http://drupal.org/node/1354

#7

jhodgdon - December 4, 2009 - 15:40
Status:needs work» needs review

Here's a patch reroll.

AttachmentSizeStatusTest resultOperations
584296reroll.patch14.49 KBIdlePassed on all environments.View details | Re-test

#8

yched - December 4, 2009 - 20:47
Status:needs review» reviewed & tested by the community

Great cleanup. Thanks !

#9

Dries - December 4, 2009 - 22:46
Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.