You are here

recovery_pass.install in Recovery Password (Email New Password) 8

Same filename and directory in other branches
  1. 7 recovery_pass.install

Install, update, and uninstall functions for the Recovery Password module.

File

recovery_pass.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall functions for the Recovery Password module.
 */

/**
 * Implements hook_schema().
 */
function recovery_pass_schema() {
  $schema['recovery_pass'] = array(
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'UID of user.',
      ),
      'old_pass' => array(
        'type' => 'varchar',
        'not null' => TRUE,
        'length' => 255,
        'description' => 'stores temp old pass',
      ),
      'changed' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'stores request created time',
      ),
    ),
    'primary key' => array(
      'id',
    ),
    'foreign keys' => array(
      'recovery_pass_uid' => array(
        'table' => 'users',
        'columns' => array(
          'uid' => 'uid',
        ),
      ),
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
recovery_pass_schema Implements hook_schema().