You are here

function l10n_update_project_list in Localization update 7.2

Same name and namespace in other branches
  1. 6 l10n_update.project.inc \l10n_update_project_list()
  2. 7 l10n_update.project.inc \l10n_update_project_list()

Get update module's project list.

Return value

array List of projects to be updated.

2 calls to l10n_update_project_list()
L10nUpdateTest::testUpdateProjects in tests/L10nUpdateTest.test
Checks if a list of translatable projects gets build.
l10n_update_build_projects in ./l10n_update.compare.inc
Rebuild project list.

File

./l10n_update.compare.inc, line 98
The API for comparing project translation status with available translation.

Code

function l10n_update_project_list() {
  $projects = array();
  $disabled = variable_get('l10n_update_check_disabled', 0);

  // Unlike update module, this one has no cache.
  _l10n_update_project_info_list($projects, system_rebuild_module_data(), 'module', $disabled);
  _l10n_update_project_info_list($projects, system_rebuild_theme_data(), 'theme', $disabled);

  // Allow other modules to alter projects before fetching and comparing.
  drupal_alter('l10n_update_projects', $projects);
  l10n_update_remove_disabled_projects($projects);
  return $projects;
}