You are here

function autologout_schema in Automated Logout 6.2

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

Implementation of hook_schema().

File

./autologout.install, line 37
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;
}