You are here

function flush_page_cache_install in Flush page cache 7

Same name and namespace in other branches
  1. 6 flush_page_cache.install \flush_page_cache_install()

Implements hook_install().

File

./flush_page_cache.install, line 10
Install and uninstall functions for the 'Flush page cache' module.

Code

function flush_page_cache_install() {

  // Only enable footer flush page cache link if admin menu is not installed.
  if (!module_exists('admin_menu')) {
    variable_set('flush_page_cache_footer_link', '1');
  }

  // Flush page cache hook_init() code needs to execute first.
  db_update('system')
    ->fields(array(
    'weight' => -1000,
  ))
    ->condition('name', 'flush_page_cache')
    ->execute();
}