You are here

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

Return the recorded invocations.

Parameters

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

Return value

array An array of arrays. Each inner array representing the parameter list passed to one invocation.

1 call to HookStub::invocations()
HookStubProxy::invocations in tests/HookStub.inc
Return the recorded invocations.

File

tests/HookStub.inc, line 203
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 invocations($hookname) {
  if ($stub = variable_get('hookstub_' . $hookname)) {
    return $stub->invocations;
  }
}