You are here

shoutbox_user.install in Shoutbox 6.2

File

shoutbox_user/shoutbox_user.install
View source
<?php

/**
 * Implementation of hook_schema
 */
function shoutbox_user_schema() {
  $schema['shoutbox_user'] = array(
    'description' => 'Link shouts to a user',
    'fields' => array(
      'shout_id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The shout id',
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The user id',
      ),
    ),
    'primary key' => array(
      'shout_id',
    ),
  );
  return $schema;
}

/**
 * Implementation of hook_install
 */
function shoutbox_user_install() {
  drupal_install_schema('shoutbox_user');
}

/**
 * Implementation of hook_uninstall
 */
function shoutbox_user_uninstall() {
  drupal_uninstall_schema('shoutbox_user');
}

Functions

Namesort descending Description
shoutbox_user_install Implementation of hook_install
shoutbox_user_schema Implementation of hook_schema
shoutbox_user_uninstall Implementation of hook_uninstall