You are here

function domain_test_set in Domain Access 7.3

Store static variables to indicate that hooks fired.

4 calls to domain_test_set()
domain_test_domain_cron in tests/domain_test.domain.inc
Implements hook_domain_cron().
domain_test_domain_delete in tests/domain_test.domain.inc
Implements hook_domain_delete().
domain_test_domain_reassign in tests/domain_test.domain.inc
Implements hook_domain_reassign().
domain_test_get in tests/domain_test.module
Get the static value.

File

tests/domain_test.module, line 11
Test module for Domain Access.

Code

function domain_test_set($value = NULL) {
  static $storage;
  if (is_null($value) && isset($storage)) {
    return $storage;
  }
  $storage = $value;
}