You are here

function autologout_schema in Automated Logout 7.2

Same name and namespace in other branches
  1. 6 autologout.install \autologout_schema()
  2. 6.2 autologout.install \autologout_schema()

Implements hook_schema().

File

./autologout.install, line 35
Install file for Automated Logout Module

Code

function autologout_schema() {
  $schema['autologout'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'setting' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'size' => 'small',
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}