You are here

function l10n_update_admin_overview in Localization update 6

Same name and namespace in other branches
  1. 7 l10n_update.admin.inc \l10n_update_admin_overview()

Page callback: Admin overview page.

1 string reference to 'l10n_update_admin_overview'
l10n_update_menu in ./l10n_update.module
Implementation of hook_menu().

File

./l10n_update.admin.inc, line 41
Admin settings and update page.

Code

function l10n_update_admin_overview() {

  // For now we get package information provided by modules.
  $projects = l10n_update_get_projects();
  $languages = l10n_update_language_list('name');
  if ($projects && $languages) {
    $history = l10n_update_get_history();
    $available = l10n_update_available_releases();
    $updates = l10n_update_build_updates($history, $available);
    $output = theme('l10n_update_project_status', $projects, $languages, $history, $available, $updates);
    $output .= drupal_get_form('l10n_update_admin_import_form', $projects, $updates);
  }
  else {
    $output = t('No projects or languages to update.');
  }
  return $output;
}