function prod_check_update_projects_alter in Production check & Production monitor 7
Implements hook_update_projects_alter().
If we chose to exclude disabled modules, check if some of those are on the whitelist.
File
- ./
prod_check.module, line 219
Code
function prod_check_update_projects_alter(&$projects) {
if (variable_get('prod_check_exclude_disabled_modules', 0)) {
$force_checked_modules = _prod_check_get_disabled_modules_whitelist();
foreach ($projects as $project_name => $project) {
if ($project['project_type'] == 'module-disabled') {
if (!in_array($project['name'], $force_checked_modules)) {
unset($projects[$project_name]);
}
}
}
}
}