You are here

function flush_page_cache_preprocess_page in Flush page cache 6

Same name and namespace in other branches
  1. 7 flush_page_cache.module \flush_page_cache_preprocess_page()

Implementation of hook_preprocess_page().

File

./flush_page_cache.module, line 220
Easing the pain when you need to flush...Drupal's cache.

Code

function flush_page_cache_preprocess_page(&$variables) {
  if (user_access('flush page cache') && variable_get('flush_page_cache_footer_link', '0')) {
    $variables['footer_message'] .= $variables['footer_message'] ? '<span class="flush-page-cache-delimiter"> - </span>' : '';
    $variables['footer_message'] .= theme('flush_page_cache_link');
  }
}