You are here

function theme_flush_page_cache_link in Flush page cache 7

Same name and namespace in other branches
  1. 6 flush_page_cache.module \theme_flush_page_cache_link()

Outputs 'flush page cache' link which is added to a site's footer message.

2 theme calls to theme_flush_page_cache_link()
flush_page_cache_block_view in ./flush_page_cache.module
Implements hook_block_view().
flush_page_cache_preprocess_page in ./flush_page_cache.module
Implements hook_preprocess_page().

File

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

Code

function theme_flush_page_cache_link() {
  $options = array(
    'query' => array(
      'flush_page_cache' => '1',
    ),
    'attributes' => array(
      'class' => 'flush-page-cache',
    ),
    'external' => TRUE,
  );
  return l(t('Flush page cache'), flush_page_cache_get_url(), $options);
}