You are here

function sms_send_form_submit in SMS Framework 6

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

Send form submission.

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

File

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

Code

function sms_send_form_submit($form, &$form_state) {
  $number = trim($form_state['values']['number']);
  if (array_key_exists('gateway', $form_state['values'])) {
    $options = $form_state['values']['gateway'];
  }
  else {
    $options = array();
  }
  sms_send($form_state['values']['number'], $form_state['values']['message'], $options);
}