You are here

shoutbox_domain.install in Shoutbox 6.2

File

shoutbox_domain/shoutbox_domain.install
View source
<?php

/**
 * Implementation of hook_schema()
 */
function shoutbox_domain_schema() {
  $schema['shoutbox_domain'] = array(
    'description' => 'Link shouts to their respected domains.',
    'fields' => array(
      'shout_id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The shout id',
      ),
      'domain_id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The domain id',
      ),
    ),
    'primary key' => array(
      'shout_id',
    ),
  );
  return $schema;
}

/**
 * Implementation of hook_install()
 */
function shoutbox_domain_install() {
  drupal_install_schema('shoutbox_domain');
}

/**
 * Implementation of hook_uninstall()
 */
function shoutbox_domain_uninstall() {
  drupal_uninstall_schema('shoutbox_domain');
}

Functions

Namesort descending Description
shoutbox_domain_install Implementation of hook_install()
shoutbox_domain_schema Implementation of hook_schema()
shoutbox_domain_uninstall Implementation of hook_uninstall()