function sms_devel_virtualgw_ahah_send in SMS Framework 6.2
Same name and namespace in other branches
- 6 modules/sms_devel/sms_devel.virtualgw.inc \sms_devel_virtualgw_ahah_send()
- 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() {
$result = drupal_http_request(url('sms/virtualgw/receiver', array(
'absolute' => TRUE,
)), array(
'Content-Type' => 'application/x-www-form-urlencoded',
), 'POST', http_build_query(array(
'number' => $_POST['sms_devel_virtualgw_from'],
'message' => $_POST['sms_devel_virtualgw_message'],
'gw_number' => $_POST['sms_devel_virtualgw_to'],
), '', '&'));
// Return a good status
drupal_json(array(
'status' => TRUE,
));
}