You are here

function sms_send_form_validate in SMS Framework 5

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

File

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

Code

function sms_send_form_validate($form_id, &$form_values) {
  if (!sms_formatter($form_values['number'])) {
    form_set_error('number', t('You must enter a valid phone number.'));
  }
}