You are here

function l10n_update_get_history in Localization update 6

Same name and namespace in other branches
  1. 7 l10n_update.module \l10n_update_get_history()

Get update history.

Parameters

boolean $refresh: TRUE = refresh the history data.

Return value

An array of translation files indexed by project and language.

7 calls to l10n_update_get_history()
drush_l10n_update_status in ./l10n_update.drush.inc
Callback for command l10n-update-status.
l10n_update_admin_overview in ./l10n_update.admin.inc
Page callback: Admin overview page.
l10n_update_available_updates in ./l10n_update.module
Get available updates.
l10n_update_flag_history in ./l10n_update.inc
Flag the file history as up to date.
l10n_update_language_refresh in ./l10n_update.check.inc
Language refresh. Runs a batch for loading the selected languages.

... See full list

File

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

Code

function l10n_update_get_history($refresh = NULL) {
  static $status;
  if ($refresh || !isset($status)) {

    // Now add downloads history to projects
    $result = db_query("SELECT * FROM {l10n_update_file}");
    while ($update = db_fetch_object($result)) {
      $status[$update->project][$update->language] = $update;
    }
  }
  return $status;
}