function lingotek_schema_alter in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.4 lingotek.install \lingotek_schema_alter()
- 7.5 lingotek.install \lingotek_schema_alter()
- 7.6 lingotek.install \lingotek_schema_alter()
File
- ./
lingotek.install, line 261
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,
);
}