function defaultcontent_schema in Default Content 7
Same name and namespace in other branches
- 7.2 defaultcontent.install \defaultcontent_schema()
Implements hook_schema().
File
- ./
defaultcontent.install, line 26 - Installation file for Default Content module
Code
function defaultcontent_schema() {
$schema['defaultcontent'] = array(
'description' => 'Store state of default content nodes',
'fields' => array(
'name' => array(
'description' => 'Then machine name of the node',
'type' => 'varchar',
'length' => 225,
'not null' => TRUE,
),
'nid' => array(
'description' => 'Node id or NULL if there is no current node',
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'primary key' => array(
'name',
),
);
return $schema;
}