You are here

function sms_receive_get_callback in SMS Framework 5

File

modules/sms_receive/sms_receive.module, line 78

Code

function sms_receive_get_callback($extra = array()) {
  $gateway = sms_gateways('gateway', variable_get('sms_default_gateway', 0));
  if (function_exists($gateway['get_callback'])) {
    return $gateway['get_callback']();
  }
  else {
    drupal_set_message('Invalid gateway callback.');
  }
}