Is there any hook_node_pre_submit() like hook? I have a Drupal 6 site where I am using the  Webform module. There are business validations written in JavaScript, but users can bypass them by disabling JavaScript.

Is there any hook_node_pre_submit() kind of hook in Drupal 6 that doesn't allows users to submit the form if the validation fails?
I think hook_form_alter is also a good option to overcome this issue. You can validate by altering the webform.

for example:

function mymodule_form_alter($form, &amp;$form_state,$form_id) {
  //dpm($form);
  if ($form_id == 'your_form_id') {

    //validate function call
  }
}