You are here

function sms_receive_set_callback in SMS Framework 5

1 call to sms_receive_set_callback()
sms_receive_admin_form_submit in modules/sms_receive/sms_receive.module

File

modules/sms_receive/sms_receive.module, line 88

Code

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