I am using mymodule_form_alter hook
I want to change values of fields of form after submit.
Anybody have an idea how to do this. I am using drupal7.
Here is the code
function check_domain_form_alter(&$form, &$form_state, $form_id) {
switch ($form_id) {
case "user_register_form":
$form['#submit'][] = 'check_domain_user_register_form_submit';
break;
}
}
function check_domain_user_register_form_submit($form, &$form_state) {
$form_state['input']['profile_main']['field_firm_company_name']['und'][0]['value']='test';
}