You are here

function theme_authcache_p13n_assembly in Authenticated User Page Caching (Authcache) 7.2

Theme a placeholder for a personalized assembly.

Related topics

3 theme calls to theme_authcache_p13n_assembly()
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.
authcache_p13n_page_bottom_pre_render in modules/authcache_p13n/authcache_p13n.module
Pre-render callback for the page_bottom region.

File

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

Code

function theme_authcache_p13n_assembly($variables) {
  $assembly = $variables['assembly'];
  $param = $variables['param'];
  $clients = $variables['clients'];
  $fallback = $variables['fallback'];
  $context = array(
    'type' => 'assembly',
    'id' => $assembly,
    'param' => $param,
    'clients' => $clients,
    'original' => NULL,
  );
  $fallback_markup = '<!-- Error: Failed to render assembly -->';
  drupal_alter('authcache_p13n_client_fallback', $fallback_markup, $fallback, $context);
  return $fallback_markup;
}