function domain_source_schema in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain_source/domain_source.install \domain_source_schema()
- 7.3 domain_source/domain_source.install \domain_source_schema()
Implements hook_schema()
File
- domain_source/
domain_source.install, line 11 - Install file for the Domain Source module
Code
function domain_source_schema() {
$schema['domain_source'] = array(
'description' => 'Stores the canonical domain for each node.',
'fields' => array(
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'domain_id' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'nid',
),
'foreign_keys' => array(
'nid' => array(
'node' => 'nid',
),
'domain_id' => array(
'domain' => 'domain_id',
),
),
);
return $schema;
}