Projet

Général

Profil

Paste
Télécharger (801 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / privatemsg / pm_block_user / pm_block_user.install @ 13755f8d

1
<?php
2
/**
3
 * @file
4
 * Install file for pm_block_user.module
5
 */
6

    
7
/**
8
 * Implement hook_schema().
9
 */
10
function pm_block_user_schema() {
11
  $schema = array();
12

    
13
  $schema['pm_block_user'] = array(
14
    'description'       => '{pm_block_user} holds data mapping which authors who cannot messages to which recipients ',
15
    'fields'        => array(
16
      'author'    => array(
17
        'description'   => 'ID of the author',
18
        'type'          => 'int',
19
        'not null'      => TRUE,
20
        'unsigned'      => TRUE,
21
      ),
22
      'recipient'    => array(
23
        'description'   => 'ID of the recipient',
24
        'type'          => 'int',
25
        'not null'      => TRUE,
26
        'unsigned'      => TRUE,
27
      ),
28
    ),
29
    'primary key' => array('author', 'recipient'),
30
  );
31

    
32
  return $schema;
33
}