function authcache_p13n_element_post_render in Authenticated User Page Caching (Authcache) 7.2
Post render callback for elements with personalized content.
Either replace element with rendered content of '#authcache_p13n_element or perform fallback operation.
Related topics
1 string reference to 'authcache_p13n_element_post_render'
- authcache_p13n_attach in modules/
authcache_p13n/ authcache_p13n.module - Attach fragment or setting to the target render element.
File
- modules/
authcache_p13n/ authcache_p13n.module, line 380 - Provides methods for serving personalized content fragments.
Code
function authcache_p13n_element_post_render($markup, $element) {
if (authcache_page_is_cacheable() && !empty($element['#authcache_p13n_element'])) {
if (!isset($element['#authcache_p13n_element']['#original'])) {
$element['#authcache_p13n_element']['#original'] = $markup;
}
$markup = render($element['#authcache_p13n_element']);
}
return $markup;
}