You are here

function authcache_install in Authenticated User Page Caching (Authcache) 7

Same name and namespace in other branches
  1. 6 authcache.install \authcache_install()

Implements hook_install().

File

./authcache.install, line 57
Install, update and uninstall functions for the authcache module.

Code

function authcache_install() {

  // Ensure that the module is loaded early in the bootstrap:
  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("UPDATE {system} SET weight = -90 WHERE name = '%s'", 'authcache') */
  db_update('system')
    ->fields(array(
    'weight' => -90,
  ))
    ->condition('name', 'authcache')
    ->execute();
}