function translation_overview_schema_remove_submit in Translation Overview 6.2
Alter the schema when languages are removed.
1 string reference to 'translation_overview_schema_remove_submit'
- translation_overview_form_alter in ./
translation_overview.module - Implementation of hook_form_alter().
File
- ./
translation_overview.module, line 405
Code
function translation_overview_schema_remove_submit($form, &$form_state) {
$fieldname = db_escape_table($form_state['values']['langcode']);
if (db_column_exists('translation_overview_priority', $fieldname)) {
db_drop_index($ret, 'translation_overview_priority', $fieldname);
db_drop_field($ret, 'translation_overview_priority', $fieldname);
watchdog('translation_overview', 'Dropped the %langcode column from the translation_overview_priority table.', array(
'%langcode' => $form_state['values']['langcode'],
));
}
}