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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plopesc’s picture

Attaching a patch that includes the @return info.

plopesc’s picture

Status: Active » Needs review
plopesc’s picture

Attaching new patch according to 80 chars per line limitation.

jhodgdon’s picture

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

plopesc’s picture

Status: Needs work » Needs review
FileSize
648 bytes

Hello.
Blank line added.
Thanks.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks good! I'll get it committed shortly.

jhodgdon’s picture

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.