You are here

hosting_dns.install in Hostmaster (Aegir) 6

Install, update and uninstall for the dns module.

File

modules/hosting/dns/hosting_dns.install
View source
<?php

/**
 * @file
 *   Install, update and uninstall for the dns module.
 */

/**
 * Implementation of hook_schema().
 */
function hosting_dns_schema() {
  return array(
    'hosting_dns_slaves' => array(
      'fields' => array(
        'master_vid' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
          'default' => 0,
        ),
        'master_nid' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
          'default' => 0,
        ),
        'slave_nid' => array(
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
          'default' => 0,
        ),
      ),
      'primary key' => array(
        'master_vid',
        'master_nid',
      ),
    ),
  );
}

/**
 * Implementation of hook_install().
 */
function hosting_dns_install() {
  drupal_install_schema('hosting_dns');
}

/**
 * Implementation of hook_uninstall().
 */
function hosting_dns_uninstall() {
  drupal_uninstall_schema('hosting_dns');
}

Functions

Namesort descending Description
hosting_dns_install Implementation of hook_install().
hosting_dns_schema Implementation of hook_schema().
hosting_dns_uninstall Implementation of hook_uninstall().