domain_source.install in Domain Access 6.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
*/
/**
* Implement hook_install()
*/
function domain_source_install() {
drupal_install_schema('domain_source');
}
/**
* Implement hook_schema()
*/
function domain_source_schema() {
$schema['domain_source'] = array(
'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',
),
);
return $schema;
}
/**
* Implement hook_uninstall()
*/
function domain_source_uninstall() {
drupal_uninstall_schema('domain_source');
}
Functions
Name | Description |
---|---|
domain_source_install | Implement hook_install() |
domain_source_schema | Implement hook_schema() |
domain_source_uninstall | Implement hook_uninstall() |