You are here

function l10n_update_system_modules_uninstall_submit in Localization update 6

Additional submit hander for System Modules Uninstall form.

Remove data of uninstalled modules from {l10n_update_file} table.

See also

l10n_update_form_alter()

1 string reference to 'l10n_update_system_modules_uninstall_submit'
l10n_update_form_alter in ./l10n_update.module
Implementation of hook_form_alter().

File

./l10n_update.module, line 154
Download translations from remote localization server.

Code

function l10n_update_system_modules_uninstall_submit($form, $form_state) {
  if (isset($form['#confirmed'])) {
    $uninstall = array_keys(array_filter($form_state['values']['uninstall']));
    db_query("DELETE FROM {l10n_update_file} WHERE project IN (" . db_placeholders($uninstall, 'text') . ")", $uninstall);
  }
}