You are here

function authcache_preprocess_page in Authenticated User Page Caching (Authcache) 6

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

Process page template variables

File

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

Code

function authcache_preprocess_page(&$variables) {
  global $is_page_authcache;
  if ($variables['messages']) {

    // Status message(s) found, do not cache page
    $is_page_authcache = $variables['is_page_authcache'] = FALSE;
    global $authcache_debug_info;
    $authcache_debug_info = 'Status message displayed.';
  }

  // Required if tabs need to be generated dynamically
  if ($is_page_authcache && $variables['logged_in']) {
    $variables['tabs'] = '<span id="authcache-tabs">' . $variables['tabs'] . '</span>';
  }
}