Hi All
How do submit form one module to other module in drupal 7
Regards Selvaraj.C
Hi All
How do submit form one module to other module in drupal 7 drupal_goto(drupal_get_path('module', ' '));
Regards Selvaraj.C
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/ho...
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/ ]
Todd
Exactly Correct .Thank for quick response
On 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/ho...
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/ ]
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@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/ho...
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/ ]
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@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@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/ho...
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/ ]
Smith
Thank you
On Sun, Jan 22, 2012 at 9:03 AM, Rohan Smith rohanasmith@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@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@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/ho...
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/ ]