sms_test_gateway.module in SMS Framework 8
Same filename and directory in other branches
A test gateway to be used for testing the SMS Framework.
File
tests/modules/sms_test_gateway/sms_test_gateway.moduleView source
<?php
/**
* @file
* A test gateway to be used for testing the SMS Framework.
*/
/**
* Gets incoming data from static.
*/
function sms_test_gateway_get_incoming($reset = FALSE) {
$key = 'sms_test_gateway_sms_incoming_preprocess';
$result =& drupal_static($key);
if (!isset($result)) {
$result = \Drupal::state()
->get($key, []);
}
if ($reset) {
\Drupal::state()
->delete($key);
drupal_static_reset($key);
}
return $result;
}
Functions
Name | Description |
---|---|
sms_test_gateway_get_incoming | Gets incoming data from static. |