By somes on
Im trying to redirect on node deletion here is the code
[code]
function surveyform_form_alter(&$form, &$form_state, $form_id) {
//print_r($form);
if( $form_id == "node_delete_confirm" ){
dsm('martin is deleting content NNNNNNNNNOoooo');
dsm($form);
$form['actions']['submit']['#submit'][] = 'formblock_submit_martin';
}
}
[/code]
the issue seems to be on the form there is no properties for $form['actions']['submit']['#submit'][]
any ideas Ive have this working when saving nodes but not on node deletion
should i be using the hook_delete if so how :)
M
Comments
Rules
Have you looked at rules module. Some programmers don't like it but I thinks it's great here's an export
This redirects to front page on deletion of node.
Peter J Lord
http://peterjlord.co.uk