You are here

simple_pass_reset.install in Simple Password Reset 7

Same filename and directory in other branches
  1. 8 simple_pass_reset.install

Drupal install and update hooks.

File

simple_pass_reset.install
View source
<?php

/**
 * @file
 * Drupal install and update hooks.
 */

/**
 * On install, make our module's weight higher than system.module.
 */
function simple_pass_reset_install() {
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('name', 'simple_pass_reset', '=')
    ->execute();
}

/**
 * Update our module's weight higher than system.module.
 */
function simple_pass_reset_update_7100() {
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('name', 'simple_pass_reset', '=')
    ->execute();
}

Functions

Namesort descending Description
simple_pass_reset_install On install, make our module's weight higher than system.module.
simple_pass_reset_update_7100 Update our module's weight higher than system.module.