API page: http://api.drupal.org/api/drupal/modules%21field%21field.api.php/functio...

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

The link to hook_field_widget_WIDGET_TYPE_form_alter is not linked in the API documentation.

/**
// Currently
 * @see hook_field_widget_WIDGET_TYPE_form_alter
// should be
 * @see hook_field_widget_WIDGET_TYPE_form_alter()
 */

OT: Is there an issue for introducing some form of PHPDoc documentation about version-compatibility? It seems hook_field_widget_form_alter() was introduced in 7.8 and were it not for someone who posted that info as a comment I wouldn't know that.

EDIT: Fix inline PHP code

CommentFileSizeAuthor
#3 drupal-field-api-doc-1533498-3.patch1.58 KBjmarkel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

Issue tags: +Novice
tstoeckler’s picture

Issue summary: View changes

Updated issue summary.

jhodgdon’s picture

RE your OT question, there's an issue about @since that you can probably find in the Drupal Core issue queue.

Meanwhile, this issue needs a patch. Thanks for reporting it!

jmarkel’s picture

Assigned: Unassigned » jmarkel
Status: Active » Needs review
FileSize
1.58 KB

Here's a shot at it ...

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Nice! Extra credit for the good cleanup. I'll get this committed sometime soon. :)

jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x and 7.x.

jmarkel’s picture

Assigned: jmarkel » Unassigned

Whoa - fast :-)

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

Anonymous’s picture

Issue summary: View changes

Updated issue summary.