API page: http://api.drupal.org/api/drupal/modules%21field%21field.info.inc/functi...

Enter a descriptive title (above) relating to field_info_instance, then describe the problem you have found:

In particular, this should state what is returned when no instance is found (looks like NULL to me).

Files: 
CommentFileSizeAuthor
#5 @return_doc_field_info_instance-1734482-5.patch648 bytesplopesc
PASSED: [[SimpleTest]]: [MySQL] 40,253 pass(es).
[ View ]
#3 @return_doc_field_info_instance-1734482-3.patch643 bytesplopesc
PASSED: [[SimpleTest]]: [MySQL] 40,052 pass(es).
[ View ]
#1 @return_doc_field_info_instance-1734482-1.patch640 bytesplopesc
PASSED: [[SimpleTest]]: [MySQL] 40,057 pass(es).
[ View ]

Comments

StatusFileSize
new640 bytes
PASSED: [[SimpleTest]]: [MySQL] 40,057 pass(es).
[ View ]

Attaching a patch that includes the @return info.

Status:Active» Needs review

StatusFileSize
new643 bytes
PASSED: [[SimpleTest]]: [MySQL] 40,052 pass(es).
[ View ]

Attaching new patch according to 80 chars per line limitation.

Status:Needs review» Needs work

Looks good, thanks! The only thing is that we need a blank line between the @param section and the @return. See
http://drupal.org/node/1354#functions

Status:Needs work» Needs review
StatusFileSize
new648 bytes
PASSED: [[SimpleTest]]: [MySQL] 40,253 pass(es).
[ View ]

Hello.
Blank line added.
Thanks.

Status:Needs review» Reviewed & tested by the community

Looks good! I'll get it committed shortly.

Status:Reviewed & tested by the community» Fixed

Thanks! Committed to 8.x and 7.x.

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