You are here

function i18n_access_schema in Translation Access 7

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

Implements 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;
}