function update_advanced_update_status_alter in Update Status Advanced Settings 6
Same name and namespace in other branches
- 7 update_advanced.module \update_advanced_update_status_alter()
Implementation of hook_update_status_alter().
This compares the array of computed information about projects that are missing available updates with the saved settings. If the settings specify that a particular project or release should be ignored, the status for that project is altered to indicate it is ignored because of settings.
Parameters
$projects: Reference to an array of information about available updates to each project installed on the system.
See also
update_calculate_project_data()
File
- ./
update_advanced.module, line 60 - Provides advanced settings for the Update status module in core.
Code
function update_advanced_update_status_alter(&$projects) {
foreach ($projects as $project => $project_info) {
$ignored = update_advanced_is_project_ignored($project, $project_info);
if ($ignored !== FALSE) {
$projects[$project]['status'] = UPDATE_NOT_CHECKED;
$projects[$project]['reason'] = t('Ignored from settings');
if ($ignored !== TRUE) {
$projects[$project]['extra'][] = array(
'class' => 'admin-note',
'label' => t('Administrator note'),
'data' => $ignored,
);
}
}
}
}