You are here

domain_conf.install in Domain Access 6.2

Install file.

File

domain_conf/domain_conf.install
View source
<?php

/**
 * @file
 * Install file.
 */

/**
 * Implement hook_install()
 */
function domain_conf_install() {
  drupal_install_schema('domain_conf');
}

/**
 * Implement hook_schema()
 */
function domain_conf_schema() {
  $schema['domain_conf'] = array(
    'fields' => array(
      'domain_id' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'settings' => array(
        'type' => 'blob',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'domain_id',
    ),
  );
  return $schema;
}

/**
 * Implement hook_uninstall()
 */
function domain_conf_uninstall() {
  drupal_uninstall_schema('domain_conf');
}

Functions