You are here

function quickupdate_install in Quick update 7

Implements hook_install().

File

./quickupdate.install, line 11
Install functions for the Quick update module.

Code

function quickupdate_install() {

  // Give Quick update module a higher weight than update module.
  $weight = db_select('system', 's')
    ->fields('s', array(
    'weight',
  ))
    ->condition('name', 'update', '=')
    ->execute()
    ->fetchField();
  db_update('system')
    ->fields(array(
    'weight' => $weight + 1,
  ))
    ->condition('name', 'quickupdate', '=')
    ->execute();
}