Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 520946.patch | 1.04 KB | jhodgdon |
Comments
Comment #1
jhodgdonGood 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.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!