You are here

function sms_test_gateway_get_incoming in SMS Framework 7

Same name and namespace in other branches
  1. 8 tests/modules/sms_test_gateway/sms_test_gateway.module \sms_test_gateway_get_incoming()
  2. 2.x tests/modules/sms_test_gateway/sms_test_gateway.module \sms_test_gateway_get_incoming()
  3. 2.1.x tests/modules/sms_test_gateway/sms_test_gateway.module \sms_test_gateway_get_incoming()
2 calls to sms_test_gateway_get_incoming()
SmsDevelTestSendFormTestCase::testDevelSendReceiveForm in modules/sms_devel/tests/sms_devel.test
Tests if messages sent using the test send form are stored properly.
SmsUserWebTest::testIncomingUserSwitch in modules/sms_user/tests/sms_user.test
1 string reference to 'sms_test_gateway_get_incoming'
sms_test_gateway_sms_incoming in tests/sms_test_gateway/sms_test_gateway.module
Implements hook_sms_incoming().

File

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

Code

function sms_test_gateway_get_incoming($op, $reset = FALSE) {
  $key = __FUNCTION__ . $op;
  $result =& drupal_static($key);
  if (!isset($result)) {
    $result = variable_get($key, array());
  }
  if ($reset) {
    variable_del($key);
    drupal_static_reset($key);
  }
  return $result;
}