You are here

function sms_actions_send_action_submit in SMS Framework 7

Same name and namespace in other branches
  1. 6.2 modules/sms_actions/sms_actions.module \sms_actions_send_action_submit()
  2. 6 modules/sms_actions/sms_actions.module \sms_actions_send_action_submit()

Submit handler for sms_actions_send_action form.

File

modules/sms_actions/sms_actions.module, line 182
Provides a "Send SMS" action and the ability to define custom triggers for incoming messages.

Code

function sms_actions_send_action_submit($form, &$form_state) {

  // Process the HTML form to store configuration. The keyed array that
  // we return will be serialized to the database.
  $params = array(
    'number' => $form_state['values']['number'],
    'author' => $form_state['values']['author'],
    'message' => $form_state['values']['message'],
  );
  return $params;
}