[support] form

Selvaraj Chnnasamy selvaraj at jbkinfotech.com
Mon Jan 23 09:24:50 UTC 2012


Smith

Thank you


On Sun, Jan 22, 2012 at 9:03 AM, Rohan Smith <rohanasmith at gmail.com> wrote:

> for a code example - here you go
> <?php
> function 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 at savagevenus.net> wrote:
>
>> You're welcome :)
>>
>> Regards,
>> Todd
>>
>> On 21 Jan 2012, at 15:14, Selvaraj Chnnasamy wrote:
>>
>> Todd
>>
>> Exactly Correct .Thank for quick response
>>
>>
>> On Sun, Jan 22, 2012 at 1:28 AM, Todd <todd at 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/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120123/c49c1eec/attachment.html 


More information about the support mailing list