1

I include the webform in site, now when I submit the form, then I need to give the confirmation to user that your request has been submitted & I need to show the user that, how many request he submitted in the system like "Previous submission" page.

For this, I want to customize the webform-confirmation.tpl.php in webform module, I tried to include webform.report.inc and using webform_results_table($node, 0), displaying table but it will not give the Operation view, edit, delete.

Please help me to find out the solution for this?

4

1 回答 1

2

请将此代码复制到自定义模块 costom_module_menu_alter(&$items) 的 _alter 挂钩中

$items['node/%webform_menu/done']= array(
    'page callback' => 'confirmation',// custom method on submission of form
    'type' => MENU_CALLBACK,
    'access callback' => MENU_DEFAULT_LOCAL_TASK,
   );
}

并在确认功能中定义您自己的代码

清除整个缓存

于 2012-09-20T06:25:32.563 回答