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.
API page: http://api.drupal.org/api/drupal/developer%21topics%21forms_api_referenc...
Under the section for '#submit':
> rather than the default form validation function which is the form ID with _submit appended to it.
A validation function ends in _validate, never _submit.
That said, I am not entirely sure what this is MEANT to say, as I am not sure how one switches between the two possibilities described earlier in the same sentence:
> This is usually to add additional submit functions to a form, or to use an alternate function
Comments
Comment #1
joachim CreditAttribution: joachim commented... especially in light of this code:
Seems to me that if a button element specifies a #submit, then it's not going to get the form's basic submit handlers, and there's no other way to do it.
Comment #2
jhodgdonThis file is in the Documentation git repository.