function sms_clickatell_message_status_codes in SMS Framework 6
Returns an array of message status codes and strings that are generated by the Clickatell gateway
Clickatell always uses leading zeros, so its important to enclose the code keys in quotes.
Return value
Associative array of message status codes and text strings.
1 call to sms_clickatell_message_status_codes()
- sms_clickatell_receive_receipt in modules/
sms_clickatell/ sms_clickatell.module - Receive a message receipt from Clickatell
1 string reference to 'sms_clickatell_message_status_codes'
- sms_clickatell_gateway_info in modules/
sms_clickatell/ sms_clickatell.module - Implement hook_gateway_info()
File
- modules/
sms_clickatell/ sms_clickatell.module, line 571 - Clickatell gateway module for Drupal SMS Framework. Outbound+Inbound+Receipts
Code
function sms_clickatell_message_status_codes() {
return array(
'001' => 'Message unknown',
'002' => 'Message queued',
'003' => 'Delivered to gateway',
'004' => 'Received by recipient',
'005' => 'Error with message',
'006' => 'User cancelled message delivery',
'007' => 'Error delivering message',
'008' => 'OK',
'009' => 'Routing error',
'010' => 'Message expired',
'011' => 'Message queued for later delivery',
'012' => 'Out of credit',
);
}