function i18nstrings_schema in Internationalization 6
Implementation of hook_schema().
File
- i18nstrings/
i18nstrings.install, line 49 - Installation file for i18nstrings module.
Code
function i18nstrings_schema() {
$schema['i18n_strings'] = array(
'description' => 'Metadata for source strings.',
'fields' => array(
'lid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'Source string ID. References {locales_source}.lid.',
),
'objectid' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Object ID.',
),
'type' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Object type for this string.',
),
'property' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Object property for this string.',
),
'objectindex' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'Integer value of Object ID.',
),
'format' => array(
'description' => "The input format used by this string.",
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'lid',
),
);
return $schema;
}