function admin_language_schema in Administration Language 7
Implements hook_schema().
File
- ./
admin_language.install, line 37 - Update functions for Administration language.
Code
function admin_language_schema() {
$schema = array();
$schema['admin_language'] = array(
'description' => 'Stores user admin language selections.',
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary Key: Unique user ID.',
'default' => 0,
),
'language' => array(
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
'description' => "User's default administration language.",
),
),
'unique keys' => array(
'uid_language' => array(
'uid',
'language',
),
),
'primary key' => array(
'uid',
),
);
return $schema;
}