You are here

function sms_sendtophone_form_validate in SMS Framework 5

Same name and namespace in other branches
  1. 6.2 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_form_validate()
  2. 6 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_form_validate()
  3. 7 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_form_validate()

File

modules/sms_sendtophone/sms_sendtophone.module, line 388

Code

function sms_sendtophone_form_validate($form_id, $form_values) {
  if ($error = sms_validate_number($form_values['number'])) {
    form_set_error('number', $error);
  }
}