You are here

function sms_clickatell_balance in SMS Framework 6

Same name and namespace in other branches
  1. 5 modules/sms_clickatell/sms_clickatell.module \sms_clickatell_balance()

Get account balance

Return value

Balance text

1 call to sms_clickatell_balance()
sms_clickatell_admin_form in modules/sms_clickatell/sms_clickatell.module
Configuration form for gateway module

File

modules/sms_clickatell/sms_clickatell.module, line 202
Clickatell gateway module for Drupal SMS Framework. Outbound+Inbound+Receipts

Code

function sms_clickatell_balance() {
  $result = sms_clickatell_command('getbalance');

  // This part of the array will either contain the balance or a useful error message
  return $result['gateway_status_text'];
}