I'm really confused,can someone clarify this?
+2
A:
Check the entries for 'Validating Forms' and 'Submitting Forms' in the Form API Quickstart Guide - by default Drupal will look for a function that is named [form_id]_submit
, but this is just the default behavior. You can override this (or add more than one submit callback) by putting the callback function names in the #submit
attribute of the form declaration (see http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#submit-prop).
Henrik Opel
2010-05-17 09:37:37
notice it can run *more than one* function in #validate and #submit.
barraponto
2010-05-19 04:39:18