You are here

function og_notifications_schema in Organic groups 6.2

Same name and namespace in other branches
  1. 6 modules/og_notifications/og_notifications.install \og_notifications_schema()

Definition of hook_schema().

File

modules/og_notifications/og_notifications.install, line 19

Code

function og_notifications_schema() {
  $schema = array();
  $schema['og_notifications'] = array(
    'description' => 'Stores autosubscription preferences for each user.',
    'fields' => array(
      'uid' => array(
        'description' => "The user's {user}.uid.",
        'type' => 'int',
        'size' => 'normal',
        'not null' => TRUE,
      ),
      'autosubscribe' => array(
        'description' => "The user's autosubscribe preference: -1, 0 or 1 which corresponds to 'Site default', 'Disabled' or 'Enabled' respectively.",
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => -1,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}