/ 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
<?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; } } ?>
You need to login to post a comment.
