You are here

quickupdate.install in Quick update 7

Install functions for the Quick update module.

File

quickupdate.install
View source
<?php

/**
 * @file
 * Install functions for the Quick update module.
 */

/**
 * Implements hook_install().
 */
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();
}

Functions

Namesort descending Description
quickupdate_install Implements hook_install().