function node_limit_schema in Node Limit 6
Same name and namespace in other branches
- 8 old/node_limit.install \node_limit_schema()
- 7 node_limit.install \node_limit_schema()
Implementation of hook_schema().
File
- ./
node_limit.install, line 20 - Installation functions for module node_limit.
Code
function node_limit_schema() {
$schema['node_limit'] = array(
'description' => t('The base Node Limit table'),
'fields' => array(
'lid' => array(
'description' => t('The limit id'),
'type' => 'int',
'not null' => TRUE,
),
'nlimit' => array(
'description' => t('The node limit for this limit'),
'type' => 'int',
'not null' => TRUE,
'default' => NODE_LIMIT_NO_LIMIT,
),
'title' => array(
'description' => t('The display name for this limit'),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'weight' => array(
'description' => t('The weight of this limit'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'lid',
),
);
return $schema;
}