In http://api.drupal.org/api/function/form_set_error/7 the function prototype for version 7 is

form_set_error($name = NULL, $message = '')

but the parameters section of the page describes the parameter $reset, that is missing from the prototype.

So either $reset has to be listed in the prototype or its description must be removed from the parameters section.

CommentFileSizeAuthor
#1 520946.patch1.04 KBjhodgdon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Status: Active » Needs review
FileSize
1.04 KB

Good catch!

Here's a patch for this function's doc. Removed the $reset parameter, as it has been removed from the function. Brought function doc into compliance with current doc standards. Also changed the @return section, as it had references to two functions without () so they weren't generating links.

jhodgdon requested that failed test be re-tested.

Dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)

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