You are here

function sms_test_gateway_send in SMS Framework 7

Send callback

1 string reference to 'sms_test_gateway_send'
sms_test_gateway_gateway_info in tests/sms_test_gateway/sms_test_gateway.module
Implements hook_gateway_info().

File

tests/sms_test_gateway/sms_test_gateway.module, line 28
A test gateway to be used for testing the sms framework

Code

function sms_test_gateway_send($number = NULL, $message = NULL, $options = array()) {
  $result =& drupal_static('sms_test_gateway_result');
  if (!is_null($number) && !is_null($message)) {
    $result['number'] = $number;
    $result['message'] = $message;
    $result['options'] = $options;
    variable_set('sms_test_gateway_result', $result);
  }
  return array(
    'status' => TRUE,
    'result' => $result,
  );
}