You are here

rate_expiration.install in Rate 7

Same filename and directory in other branches
  1. 6.2 expiration/rate_expiration.install

Installation/Uninstallation functions for rate expiration module.

File

expiration/rate_expiration.install
View source
<?php

/**
 * @file
 * Installation/Uninstallation functions for rate expiration module.
 */

/**
 * Implements hook_schema().
 */
function rate_expiration_schema() {
  $schema = array();
  $schema['rate_expiration'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'widget_name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'start' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'end' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'nid',
      'widget_name',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
rate_expiration_schema Implements hook_schema().