You are here

function authcache_p13n_test_set_session_data in Authenticated User Page Caching (Authcache) 7.2

Menu callback: Modify session data.

1 string reference to 'authcache_p13n_test_set_session_data'
authcache_p13n_test_menu in modules/authcache_p13n/tests/authcache_p13n_test.module
Implements hook_menu().

File

modules/authcache_p13n/tests/authcache_p13n_test.module, line 36
Stub module for authcache personalization tests.

Code

function authcache_p13n_test_set_session_data() {
  $data = HookStub::record(__FUNCTION__, func_get_args());
  if ($data) {
    $_SESSION['authcache_p13n_test'] = $data;
  }
  else {
    unset($_SESSION['authcache_p13n_test']);
  }
}