You are here

function l10n_update_modules_disabled in Localization update 7.2

Implements hook_modules_disabled().

Set disabled modules to be ignored when updating translations.

File

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

Code

function l10n_update_modules_disabled($modules) {
  if (!variable_get('l10n_update_check_disabled', FALSE)) {
    db_update('l10n_update_project')
      ->fields(array(
      'status' => 0,
    ))
      ->condition('name', $modules)
      ->execute();
  }
}