You are here

function i18n_access_schema in Translation Access 6

Same name and namespace in other branches
  1. 7 i18n_access.install \i18n_access_schema()

Implementation of hook_schema().

File

./i18n_access.install, line 11
file_description

Code

function i18n_access_schema() {
  $schema['i18n_access'] = array(
    'description' => 'Store language permissions per user',
    'fields' => array(
      'uid' => array(
        'description' => 'The primary identifier for a user.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'perm' => array(
        'description' => 'List of languages that the user has permission for.',
        'type' => 'text',
        'not null' => FALSE,
        'size' => 'big',
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}