开发者

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

开发者 https://www.devze.com 2022-12-30 07:03 出处:网络
I\'m really confused开发者_如何学Go,can someone clarify this?Check the entries for \'Validating Forms\' and \'Submitting Forms\' in the Form API Quickstart Guide - by default Drupal will look for a fu

I'm really confused开发者_如何学Go,can someone clarify this?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号