function smartqueue_schema in Nodequeue 7.2
Same name and namespace in other branches
- 6.2 smartqueue.install \smartqueue_schema()
- 7.3 smartqueue.install \smartqueue_schema()
Implements hook_schema().
File
- modules/
smartqueue/ smartqueue.install, line 11 - Install, update and uninstall functions for the smartqueue module.
Code
function smartqueue_schema() {
$schema['smartqueue'] = array(
'description' => 'Table for smartqueues, storing global information for each queue.',
'fields' => array(
'qid' => array(
'description' => 'The primary identifier for a queue.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'use_parents' => array(
'description' => "Whether a queue is to use the terms' parents when displaying the queue selection.",
'type' => 'int',
'size' => 'tiny',
'default' => 0,
),
'use_parents_all' => array(
'description' => 'Whether a queue is to use all the terms ancestors when displaying the queue selection.',
'type' => 'int',
'size' => 'tiny',
'default' => 0,
),
),
'primary key' => array(
'qid',
),
);
return $schema;
}