rate_expiration.install in Rate 7
Same filename and directory in other branches
Installation/Uninstallation functions for rate expiration module.
File
expiration/rate_expiration.installView 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
Name | Description |
---|---|
rate_expiration_schema | Implements hook_schema(). |