You are here

sms_test_gateway.module in SMS Framework 8

A test gateway to be used for testing the SMS Framework.

File

tests/modules/sms_test_gateway/sms_test_gateway.module
View 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

Namesort descending Description
sms_test_gateway_get_incoming Gets incoming data from static.