How does drupal choose which function to process the submit form?

I'm really confused, can someone clarify this?

+4
source share
1 answer

Check the entries for “Validating Forms” and “Submitting Forms” in the Forms API Quick Start Guide - by default, Drupal will look for a function named [form_id]_submit , but this is only the default behavior. You can override this (or add more than one callback) by placing the callback function names in the #submit attribute of the #submit declaration (see http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html / 6 # submit-prop ).

+2
source

Source: https://habr.com/ru/post/1309957/


All Articles