You are here

function drush_l10n_update_refresh in Localization update 6

Same name and namespace in other branches
  1. 7.2 l10n_update.drush.inc \drush_l10n_update_refresh()
  2. 7 l10n_update.drush.inc \drush_l10n_update_refresh()

Callback for command l10n-update-refresh.

File

./l10n_update.drush.inc, line 35
Drush interface to l10n-update functionalities.

Code

function drush_l10n_update_refresh() {
  module_load_include('admin.inc', 'l10n_update');

  // Fake $form_state to leverage _submit function.
  $form_state = array(
    'values' => array(
      'op' => t('Refresh information'),
    ),
  );
  l10n_update_admin_import_form_submit(NULL, $form_state);
}