我真的很困惑,有人可以澄清一下吗?
I'm really confused,can someone clarify this?
检查表单 API 快速入门指南中的“验证表单”和“提交表单”条目 - 默认情况下Drupal 将查找名为 [form_id]_submit 的函数,但这只是默认行为。您可以通过将回调函数名称放在表单声明的 #submit 属性中来覆盖此设置(或添加多个提交回调)(请参阅 http://api.drupal.org/api/drupal/developer--topics--forms_api_reference .html/6#submit-prop)。
[form_id]_submit
#submit
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 评论 0
接受
发布评论
评论(1)
检查表单 API 快速入门指南中的“验证表单”和“提交表单”条目 - 默认情况下Drupal 将查找名为
[form_id]_submit
的函数,但这只是默认行为。您可以通过将回调函数名称放在表单声明的#submit
属性中来覆盖此设置(或添加多个提交回调)(请参阅 http://api.drupal.org/api/drupal/developer--topics--forms_api_reference .html/6#submit-prop)。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).