You are here

function flush_page_cache_install in Flush page cache 6

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

Implementation of 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_query("UPDATE {system} SET weight=-1000 WHERE name = 'flush_page_cache'");
}