function lingotek_update_7600 in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 lingotek.install \lingotek_update_7600()
Adds the lingotek_config_map table.
File
- ./
lingotek.install, line 923
Code
function lingotek_update_7600(&$sandbox) {
$module = 'lingotek';
$table = 'lingotek_config_map';
if (!db_table_exists($table)) {
$schema = drupal_get_schema_unprocessed($module, $table);
db_create_table($table, $schema);
$output = t('Table @table was created.', array(
'@table' => $table,
));
}
else {
$output = t('The @table table already exists. No action taken.', array(
'@table' => $table,
));
}
return $output;
}