user_relationship_privatemsg.install in User Relationships 7
Install time hooks for user_relationship_privatemsg module.
File
user_relationship_privatemsg/user_relationship_privatemsg.installView source
<?php
/**
* @file
* Install time hooks for user_relationship_privatemsg module.
*/
/***
* Implements hook_schema().
*/
function user_relationship_privatemsg_schema() {
$schema['user_relationship_privatemsg'] = array(
'fields' => array(
'urpid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'rtid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'author' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array(
'urpid',
),
'unique keys' => array(
'rtid_author' => array(
'rtid',
'author',
),
),
);
return $schema;
}
Functions
Name![]() |
Description |
---|---|
user_relationship_privatemsg_schema |