shoutbox_user.install in Shoutbox 7.2
Same filename and directory in other branches
Install, update and uninstall functions for the shoutbox_user module.
File
shoutbox_user/shoutbox_user.installView 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
Name | Description |
---|---|
shoutbox_user_schema | Implements hook_schema(). |