function lingotek_add_language_for_groups in Lingotek Translation 7.7
Adds the "language" column to the group table
1 call to lingotek_add_language_for_groups()
File
- ./
lingotek.util.inc, line 3307 - Utility functions.
Code
function lingotek_add_language_for_groups() {
if (!db_field_exists('groups', 'language')) {
$schema['groups']['fields']['language'] = array(
'type' => 'char',
'length' => 8,
'not null' => TRUE,
'default' => language_default()->language,
'description' => 'Language used for third party translation',
);
db_add_field('groups', 'language', $schema['groups']['fields']['language']);
LingotekLog::warning('Language column has been added to the @module_name by Lingotek.', array(
'@module_name' => 'Group',
));
}
}