You are here

public static function HookStub::off in Authenticated User Page Caching (Authcache) 7.2

Disable recording of invocations.

Parameters

string $hookname: The fully qualified name of a function in a stub-module.

Return value

HookStubProxy A proxy object representing the stubbed hook.

2 calls to HookStub::off()
AuthcacheBuiltinTestCacheBackend::testCachePreclusion in modules/authcache_builtin/tests/authcache_builtin.cache-backend.test
Preclusion: Suppress subsequent page request being delivered from cache.
HookStubProxy::off in tests/HookStub.inc
Disable recording of invocations.

File

tests/HookStub.inc, line 172
Defines some helper classes for stubbing and recording hook invocations.

Class

HookStub
Static methods for keeping track of enabled hooks and invocations.

Code

public static function off($hookname) {
  variable_del('hookstub_' . $hookname);
}