You are here

shoutbox_user.install in Shoutbox 7

Install, update and uninstall functions for the shoutbox_user module.

File

shoutbox_user/shoutbox_user.install
View source
<?php

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

/**
 * Implements 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;
}

Functions

Namesort descending Description
shoutbox_user_schema Implements hook_schema().