function context_node_schema in Context Node 7
Same name and namespace in other branches
- 6 context_node.install \context_node_schema()
Implement hook_schema().
File
- ./
context_node.install, line 6
Code
function context_node_schema() {
$schema = array();
$schema['context_node'] = array(
'description' => 'Custom layout context node table.',
'fields' => array(
'nid' => array(
'description' => 'Node nid number',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'vid' => array(
'description' => 'Node vid number',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'context' => array(
'description' => 'Node template',
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
),
),
'unique keys' => array(
'vid' => array(
'vid',
),
),
'primary key' => array(
'vid',
),
);
return $schema;
}