You are here

function mobile_number_sms_callback in Mobile Number 7

Helper function for finding sms integrations and returning the sms callback.

Return value

bool|callable Callback, or FALSE if not callable.

2 calls to mobile_number_sms_callback()
mobile_number_send_sms in ./mobile_number.module
Send sms wrapper function.
mobile_number_sms_sending_is_enabled in ./mobile_number.module
Helper function for detecting if sms functionality is available on the site.

File

./mobile_number.module, line 1136
mobile_number.module

Code

function mobile_number_sms_callback() {
  $callback = array();
  if (module_exists('sms')) {
    $callback = 'sms_send';
  }
  drupal_alter('mobile_number_send_sms_callback', $callback);
  return is_callable($callback) ? $callback : FALSE;
}