domain_source.install in Domain Access 7.2
Same filename and directory in other branches
Install file for the Domain Source module
File
domain_source/domain_source.installView source
<?php
/**
* @file
* Install file for the Domain Source module
*/
/**
* Implements hook_schema()
*/
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;
}
Functions
Name | Description |
---|---|
domain_source_schema | Implements hook_schema() |