You are here

function authcache_p13n_authcache_p13n_client_fallback_alter in Authenticated User Page Caching (Authcache) 7.2

Implements hook_authcache_p13n_client_fallback_alter().

Related topics

File

modules/authcache_p13n/authcache_p13n.module, line 728
Provides methods for serving personalized content fragments.

Code

function authcache_p13n_authcache_p13n_client_fallback_alter(&$markup, $method, $context) {
  switch ($method) {
    case 'cancel':
      authcache_cancel(t('No client for %type %id', array(
        '%type' => $context['type'],
        '%id' => $context['id'],
      )));
      if (isset($context['original'])) {
        $markup = $context['original'];
      }
      break;
  }
}