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