Problem/Motivation
I found what I believe to be an error in the Description for the #submit property on the Form API reference page.
The Description for the #submit property contains a confusing reference to “default form validation function” where I am sure it means to refer to “default form submission function”.
I've underlined the confused part of the description as it currently reads…
Description: A list of custom submit functions that will be called when the element is submitted. This is usually to add additional submit functions to a form, or to use an alternate function rather than the default form validation function which is the form ID with _submit appended to it.
Proposed resolution
I think that it should be changed to read like this…
Description: A list of custom submit functions that will be called when the element is submitted. This is usually to add additional submit functions to a form, or to use an alternate function rather than the
default form validation functiondefault form submission function which is the form ID with _submit appended to it.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | form_API_reference_-1816032-5.patch | 1.37 KB | mjonesdinero |
| #3 | form_API_reference_-1816032-3.patch | 1.37 KB | mjonesdinero |
Comments
Comment #1
Anonymous (not verified) commentedLet's correct D8 first.
Comment #2
jhodgdonThis file is in the Documentation project git repo
Comment #3
mjonesdinero commentedhi attach is patch for d8 version
Comment #4
mjonesdinero commentedComment #5
mjonesdinero commentedsorry for got to make it on the needs review status
Comment #6
Anonymous (not verified) commentedComment #7
jhodgdonHey, sorry for the huge delay! I was just going through some old issues and found this one. I committed the patch to both 8.x and 7.x versions of the Form API reference file. Thanks all!