答案 0 :(得分:1)
如果您创建一个新模块,您可以添加hook_form_alter的实现以检查所有表单并更改相应表单上的提交重定向
/*
Implementation of hook_form_alter this method hooks into the submission of story forms
and redirects appropriately
*/
function my_redirect_module_form_alter(&$form, &$form_state, $form_id) {
//some code to filter the forms
if(!$form['#node']->type=='story') {return;}
//otherwise this is a for we want to fangle
$form_state['redirect'][0]='http://localhost/drupal_new/xyz.php';
//this should leave all the ?q=node/xx untouched in $form_State['redirect'][1]
}
从内存写的代码所以YMMV ......
答案 1 :(得分:0)
看起来您需要实现自定义模块以进行重定向。
请查看此页面:http://drupal.org/node/134000,特别是“如何覆盖默认表单重定向”部分。它讨论了使用hook_form_alter()函数进行重定向。