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 function default form submission function which is the form ID with _submit appended to it.

Comments

Anonymous’s picture

Version: 7.x-dev » 8.x-dev
Issue tags: +Novice, +Needs backport to D7

Let's correct D8 first.

jhodgdon’s picture

Project: Drupal core » Documentation
Version: 8.x-dev »
Component: documentation » API documentation files
Issue tags: +FAPI reference

This file is in the Documentation project git repo

mjonesdinero’s picture

StatusFileSize
new1.37 KB

hi attach is patch for d8 version

mjonesdinero’s picture

Status: Active » Needs review
mjonesdinero’s picture

StatusFileSize
new1.37 KB

sorry for got to make it on the needs review status

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community
jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Hey, 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!

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