You are here

function sms_sendtophone_form_submit in SMS Framework 6.2

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

File

modules/sms_sendtophone/sms_sendtophone.module, line 412

Code

function sms_sendtophone_form_submit($form, &$form_state) {
  if (sms_send($form_state['values']['number'], $form_state['values']['message'], $form_state['values']['gateway'])) {
    drupal_set_message(t('The message "@message" sent to @number.', array(
      '@message' => $form_state['values']['message'],
      '@number' => $form_state['values']['number'],
    )));
  }
}