/ Published in: PHP

on node/add/save redirect your to a url of your choice in Drupal 6 in your own custom module. (in this my module name is qctpmm, it's simply the content type of page and it's redirecting to user.)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function qctpmm_form_alter(&$form, $form_state, $form_id) { switch ($form['#id']) { case 'node-form': if ($form['type']['#value'] == 'page') { $form['#redirect'] = 'user'; } break; } } ?>
Comments
