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