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