function sms_txtlocal_map_message_status_code in SMS Framework 6
Map a Txtlocal message status code to an SMS Framework message status code
Return value
SMS Framework message status code.
1 call to sms_txtlocal_map_message_status_code()
- sms_txtlocal_receive_receipt in modules/sms_txtlocal/ sms_txtlocal.module 
- Receive a message send receipt from txtlocal
File
- modules/sms_txtlocal/ sms_txtlocal.module, line 421 
- Txtlocal gateway module for Drupal SMS Framework. Outbound+Inbound
Code
function sms_txtlocal_map_message_status_code($code) {
  switch ($code) {
    case 'D':
      return SMS_MSG_STATUS_DELIVERED;
    case 'I':
      return SMS_MSG_STATUS_ERROR;
    case 'U':
      return SMS_MSG_STATUS_EXPIRED;
  }
}