function theme_authcache_p13n_fragment in Authenticated User Page Caching (Authcache) 7.2
Theme a placeholder for a personalized fragment.
Related topics
15 theme calls to theme_authcache_p13n_fragment()
- AuthcacheAjaxTestCase::testAjaxFragment in modules/
authcache_ajax/ tests/ authcache_ajax.test - Cover theme_authcache_p13n_fragment__authcache_ajax().
- AuthcacheEsiTestCase::testEsiFragment in modules/
authcache_esi/ tests/ authcache_esi.test - Cover theme_authcache_p13n_fragment__authcache_esi().
- AuthcacheP13nTestMarkup::testCustomClientMarkup in modules/
authcache_p13n/ tests/ authcache_p13n.markup.test - Cover theme_authcache_p13n_X().
- AuthcacheP13nTestMarkup::testDefaultFallbackMarkup in modules/
authcache_p13n/ tests/ authcache_p13n.markup.test - Cover theme_authcache_p13n_X default fallback markup.
- AuthcacheP13nTestMarkup::testFallbackCancel in modules/
authcache_p13n/ tests/ authcache_p13n.markup.test - Cover authcache_p13n_authcache_p13n_client_fallback_alter().
File
- modules/
authcache_p13n/ authcache_p13n.module, line 194 - Provides methods for serving personalized content fragments.
Code
function theme_authcache_p13n_fragment($variables) {
$fragment = $variables['fragment'];
$param = $variables['param'];
$clients = $variables['clients'];
$fallback = $variables['fallback'];
$original = $variables['original'];
$context = array(
'type' => 'fragment',
'id' => $fragment,
'param' => $param,
'clients' => $clients,
'original' => $original,
);
$fallback_markup = '<!-- Error: Failed to render fragment -->';
drupal_alter('authcache_p13n_client_fallback', $fallback_markup, $fallback, $context);
return $fallback_markup;
}