function lingotek_schema_alter in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lingotek.install \lingotek_schema_alter()
- 7.5 lingotek.install \lingotek_schema_alter()
- 7.6 lingotek.install \lingotek_schema_alter()
File
- ./
lingotek.install, line 217 - Installation for Lingotek Community Translation Module.
Code
function lingotek_schema_alter(&$schema) {
// Add fields to existing schema.
$schema['languages']['fields']['lingotek_enabled'] = array(
'type' => 'int',
'description' => "Lingotek enabled",
'not null' => TRUE,
'default' => 0,
);
$schema['languages']['fields']['lingotek_locale'] = array(
'type' => 'varchar',
'description' => "Locale mapping",
'length' => 10,
'not null' => TRUE,
'default' => '',
);
$schema['locales_target']['fields']['translation_agent_id'] = array(
'type' => 'int',
'description' => "translation tool mapping",
'length' => 10,
'not null' => TRUE,
'default' => '1',
);
}