You are here

function sms_send_form_validate in SMS Framework 6.2

Same name and namespace in other branches
  1. 5 sms.module \sms_send_form_validate()
  2. 6 sms.module \sms_send_form_validate()
  3. 7 sms.module \sms_send_form_validate()

Form validation handler for sms_send_form().

See also

sms_send_form().

sms_send_form_submit().

1 string reference to 'sms_send_form_validate'
sms_devel_send_form in modules/sms_devel/sms_devel.send_form.inc
Test send form

File

./sms.module, line 384
The core of the SMS Framework. Provides gateway managment and API for sending and receiving SMS messages.

Code

function sms_send_form_validate($form, &$form_state) {
  if (!sms_validate_number(sms_formatter($form_state['values']['number']), $form_state['values']['gateway'])) {
    form_set_error('number', t('You must enter a valid phone number.'));
  }
}