2
我正在处理多个表单常见的模块。我需要将$ form_id作为参数传递给提交处理程序,并在提交函数中相应地设置表单值。如何将参数传递给Drupal中的表单提交处理程序
function ppi_form_alter(&$form, &$form_state, $form_id){
$form['#submit'][]="action_form_submit";
}
function action_form_submit($form, &$form_state) {
//here I need to get the form_id of the form and form_set_value accordingly ... How can I know the form value?
}
有没有办法知道form_submit中的form_id?
谢谢!
我已经发现,form_id已经在所有领域的隐藏字段的任何其他领域。 ... – 2012-02-25 13:34:50