function i18n_schema in Internationalization 6
Implementation of hook_schema().
File
- ./
i18n.install, line 11 - Installation file for Internationalization (i18n) module.
Code
function i18n_schema() {
$schema['i18n_variable'] = array(
'description' => 'Multilingual variables.',
'fields' => array(
'name' => array(
'description' => 'The name of the variable.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
),
'language' => array(
'description' => 'The language of the variable.',
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
),
'value' => array(
'description' => 'The value of the variable.',
'type' => 'text',
'not null' => TRUE,
'size' => 'big',
),
),
'primary key' => array(
'name',
'language',
),
);
return $schema;
}