7 update.api.php hook_update_status_alter(&$projects)
6 core.php hook_update_status_alter(&$projects)
8 update.api.php hook_update_status_alter(&$projects)

Alter the information about available updates for projects.


$projects: Reference to an array of information about available updates to each project installed on the system.

See also


Related topics

1 function implements hook_update_status_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

update_test_update_status_alter in modules/update/tests/update_test.module
Implements hook_update_status_alter().
1 invocation of hook_update_status_alter()
update_calculate_project_data in modules/update/update.compare.inc
Calculates the current update status of all projects on the site.


modules/update/update.api.php, line 85
Hooks provided by the Update Manager module.


function hook_update_status_alter(&$projects) {
  $settings = variable_get('update_advanced_project_settings', array());
  foreach ($projects as $project => $project_info) {
    if (isset($settings[$project]) && isset($settings[$project]['check']) && 
      ($settings[$project]['check'] == 'never' ||
        (isset($project_info['recommended']) &&
        $settings[$project]['check'] === $project_info['recommended']))) {
      $projects[$project]['status'] = UPDATE_NOT_CHECKED;
      $projects[$project]['reason'] = t('Ignored from settings');
      if (!empty($settings[$project]['notes'])) {
        $projects[$project]['extra'][] = array(
          'class' => array('admin-note'),
          'label' => t('Administrator note'),
          'data' => $settings[$project]['notes'],