2012-04-04 94 views
1

我在網站中包含了webform,現在當我提交表單時,我需要向用戶確認您的請求已被提交&我需要向用戶顯示他在系統中提交了多少請求,如「以前提交「頁面。爲此,我想自定義webform模塊中的webform-confirmation.tpl.php,我試圖包括webform.report.inc和使用webform_results_table($ node,0),顯示錶,但它不會給操作視圖,編輯,刪除。Drupal 7 PHP:如何自定義Webform模塊確認頁面?

請幫我找出解決方案嗎?

回答

2

請複製此代碼在您的自定義模塊的_alter鉤 costom_module_menu_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, 
    ); 
} 

,並確認功能定義你自己的代碼

清楚整個緩存