You are here

function location_search_form_validate in Location 5

File

./location.module, line 125

Code

function location_search_form_validate($form_id, &$form_values) {

  //$form_values_exp = var_export($form_values, TRUE);

  //drupal_set_message("IN location_search_form_validate(): \$form_id == $form_id, \$form_values == <pre>$form_values_exp</pre>");

  // TODO: Need to offer ability to configure which fields are included in the search form
  // TODO: And need to adjust how fields are validated
  // For now, just require postal code
  if (!$form_values['postal_code']) {

    //form_set_error('postal_code', t('You must include a postal code in your search.'));
  }
  if (!$form_values['country']) {

    //form_set_error('country', t('You much include a country in your search.'));
  }
}