domain_theme.install in Domain Access 7.2
Same filename and directory in other branches
Install file for the Domain Theme module
File
domain_theme/domain_theme.installView source
<?php
/**
* @file
* Install file for the Domain Theme module
*/
/**
* Implements hook_schema()
*/
function domain_theme_schema() {
$schema['domain_theme'] = array(
'description' => 'Stores theme information for each domain.',
'fields' => array(
'domain_id' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'theme' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'settings' => array(
'type' => 'blob',
'not null' => FALSE,
),
'status' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
'filepath' => array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
),
),
'primary key' => array(
'domain_id',
'theme',
),
'foreign_keys' => array(
'domain_id' => array(
'domain' => 'domain_id',
),
),
);
return $schema;
}
/**
* Implements hook_uninstall()
*/
function domain_theme_uninstall() {
variable_del('domain_theme_weight');
}
/**
* Update note.
*
* Upgrading from Drupal 5 to Drupal 7 is not supported.
* You must first upgrade to Drupal 6.x.2.3 or higher, and then proceed to Drupal 7.
*
*/
Functions
Name | Description |
---|---|
domain_theme_schema | Implements hook_schema() |
domain_theme_uninstall | Implements hook_uninstall() |