You are here

function sms_devel_virtualgw_ahah_send in SMS Framework 6

Same name and namespace in other branches
  1. 6.2 modules/sms_devel/sms_devel.virtualgw.inc \sms_devel_virtualgw_ahah_send()
  2. 7 modules/sms_devel/sms_devel.virtualgw.inc \sms_devel_virtualgw_ahah_send()
1 string reference to 'sms_devel_virtualgw_ahah_send'
sms_devel_menu in modules/sms_devel/sms_devel.module
Implement hook_menu()

File

modules/sms_devel/sms_devel.virtualgw.inc, line 185
Virtual Gateway for the sms_devel module of the SMS Framework.

Code

function sms_devel_virtualgw_ahah_send() {
  $from = $_POST['sms_devel_virtualgw_from'];
  $to = $_POST['sms_devel_virtualgw_to'];
  $message = $_POST['sms_devel_virtualgw_message'];
  $number = $from;
  $options['gw_number'] = $to;

  // Call the receiver
  sms_devel_virtualgw_receiver($number, $message, $options);

  // Return a good status
  drupal_json(array(
    'status' => TRUE,
  ));
}