function node_limit_interval_schema in Node Limit 6
Same name and namespace in other branches
- 8 old/node_limit_interval/node_limit_interval.install \node_limit_interval_schema()
- 7 node_limit_interval/node_limit_interval.install \node_limit_interval_schema()
Implementation of hook_schema().
File
- node_limit_interval/
node_limit_interval.install, line 18 - Installation functions for module node_limit_interval.
Code
function node_limit_interval_schema() {
$schema['node_limit_interval'] = array(
'description' => t('The table for applying node limits to a time interval'),
'fields' => array(
'lid' => array(
'description' => t('The {node_limit}.lid'),
'type' => 'int',
'not null' => TRUE,
),
'interval' => array(
'description' => t('The interval for this limit'),
'type' => 'int',
'not null' => TRUE,
),
'unit' => array(
'description' => t('The unit for the interval'),
'type' => 'int',
'not null' => TRUE,
),
),
'primary key' => array(
'lid',
),
);
return $schema;
}