You are here

function authcache_test_authcache_account_exclude in Authenticated User Page Caching (Authcache) 7.2

Implements hook_authcache_account_exclude().

2 string references to 'authcache_test_authcache_account_exclude'
AuthcachePolicyTestCase::testExcludeCancelHooks in ./authcache.test
Test API for exclusion and cancelation.
AuthcacheWebTestCase::resetTestVariables in ./authcache.test
Reset the variables used for communicating to authcache_test module.

File

tests/authcache_test.module, line 350
Mock module to aid in testing authcache.module.

Code

function authcache_test_authcache_account_exclude($account) {
  if ($reason = variable_get('authcache_test_authcache_account_exclude')) {
    return t('Trigger account exclude for uid=@uid: @reason', array(
      '@uid' => $account->uid,
      '@reason' => $reason,
    ));
  }
}