You are here

function hook_authcache_p13n_client in Authenticated User Page Caching (Authcache) 7.2

Declare a client method used to defer retrieval of personalized content.

Return an associative array where the key represents the client method (normally equal to the module name) and the value is an associative array with the following key-value pairs:

  • title: The human readable description of the client method.
  • enabled: Whether or not this client can be used for content delivered during the current request.
5 functions implement hook_authcache_p13n_client()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

authcache_ajax_authcache_p13n_client in modules/authcache_ajax/authcache_ajax.module
Implements hook_authcache_p13n_client().
authcache_esi_authcache_p13n_client in modules/authcache_esi/authcache_esi.module
Implements hook_authcache_p13n_client().
authcache_form_test_authcache_p13n_client in modules/authcache_form/tests/authcache_form_test.module
Implements hook_authcache_p13n_client().
authcache_menu_test_authcache_p13n_client in modules/authcache_menu/tests/authcache_menu_test.module
Implements hook_authcache_p13n_client().
authcache_p13n_test_authcache_p13n_client in modules/authcache_p13n/tests/authcache_p13n_test.module
Implements hook_authcache_p13n_client().
1 invocation of hook_authcache_p13n_client()
authcache_p13n_client_info in modules/authcache_p13n/authcache_p13n.module
Return information about fragment clients.

File

modules/authcache_p13n/authcache_p13n.api.php, line 204
Documentation for hooks provided by the authcache personalization module.

Code

function hook_authcache_p13n_client() {
  return array(
    'authcache_ajax' => array(
      'title' => t('Ajax'),
      'enabled' => !empty($_COOKIE['has_js']),
    ),
  );
}