You are here

function authcache_preprocess_page in Authenticated User Page Caching (Authcache) 7

Same name and namespace in other branches
  1. 6 authcache.module \authcache_preprocess_page()
  2. 7.2 authcache.module \authcache_preprocess_page()

Process page template variables.

File

./authcache.module, line 560
Authenticated User Page Caching (and anonymous users, too!)

Code

function authcache_preprocess_page(&$variables) {
  global $_authcache_is_cacheable;
  if (user_is_logged_in() && $_authcache_is_cacheable) {
    $variables['tabs']['#post_render'][] = 'authcache_wrap_tabs';
    $variables['action_links']['#post_render'][] = 'authcache_wrap_local_actions';
  }
}