I have created a form using webform module, and alter form In D7
function mymodule_form_alter(&$form, &$form_state, $form_id) {
global $user;
if('webform_client_form_1' == $form_id) {
$form['#validate'][] = 'mymodule_check_email';
}
}
function mymodule_check_email($form, &$form_state, $form_id) {
.............
.............
}
I write print_r($form_state);
in mymodule_check_email function.
Get all variables but sid value is empty but in database sid insert proper.
My question how to get sid value.