Smith
Thank you
for a code example - here you go<?phpfunction mymodule_form_alter(&$form, $form_state, $form_id){if($form_id == 'user_register') {$form['#submit'] []= 'mymodule_node_form_submit_handler';}}function mymodule_node_form_submit_handler($form, &$form_state) {unset($_REQUEST['destination']);unset($form['#redirect']);$form_state['redirect'] = 'http://google.com';}}
Regards,
--
R.A.Smith
Kindly acknowledge receipt
On Sat, Jan 21, 2012 at 4:53 PM, Todd <todd@savagevenus.net> wrote:You're welcome :)Regards,ToddOn 21 Jan 2012, at 15:14, Selvaraj Chnnasamy wrote:Todd
Exactly Correct .Thank for quick responseOn Sun, Jan 22, 2012 at 1:28 AM, Todd <todd@savagevenus.net> wrote:
I'm not certain what you are asking.
Do you mean you want to add items to a form created with another module? Use hook_form_alter().
http://api.drupal.org/api/drupal/modules--system--system.api.php/function/hook_form_alter/7
Regards,
Todd
> --
On 21 Jan 2012, at 13:35, Selvaraj Chnnasamy wrote:
> Hi All
>
> How do submit form one module to other module in drupal 7
>
> Regards
> Selvaraj.C
> [ Drupal support list | http://lists.drupal.org/ ]
--
[ Drupal support list | http://lists.drupal.org/ ]
--
[ Drupal support list | http://lists.drupal.org/ ]
--
[ Drupal support list | http://lists.drupal.org/ ]
--
[ Drupal support list | http://lists.drupal.org/ ]