function pm_update_filter

6.x drupal.inc pm_update_filter(&$project)
6.x drupal_6.inc pm_update_filter(&$project)
3.x drupal_6.inc pm_update_filter(&$project)
3.x drupal_7.inc pm_update_filter(&$project)
3.x drupal_5.inc pm_update_filter(&$project)
4.x drupal.inc pm_update_filter(&$project)
4.x drupal_6.inc pm_update_filter(&$project)
4.x drupal_5.inc pm_update_filter(&$project)
5.x drupal.inc pm_update_filter(&$project)
5.x drupal_6.inc pm_update_filter(&$project)
2 calls to pm_update_filter()
drush_pm_updatecode in commands/pm/updatecode.pm.inc
Command callback. Displays update status info and allows to update installed projects. Pass specific projects as arguments, otherwise we update all that have candidate releases.
pm_project_filter in commands/pm/updatecode.pm.inc

File

commands/pm/update_info/drupal_7.inc, line 3

Code

function pm_update_filter(&$project) {
  $update = FALSE;
  switch ($project['status']) {
    case UPDATE_CURRENT:
      $status = dt('Up to date');
      $project['candidate_version'] = $project['recommended'];
      break;
    case UPDATE_NOT_CURRENT:
      $status = dt('Update available');
      pm_release_recommended($project);
      break;
    case UPDATE_NOT_SECURE:
      $status = dt('SECURITY UPDATE available');
      pm_release_recommended($project);
      break;
    case UPDATE_REVOKED:
      $status = dt('Installed version REVOKED');
      pm_release_recommended($project);
      break;
    case UPDATE_NOT_SUPPORTED:
      $status = dt('Installed version not supported');
      pm_release_recommended($project);
      break;
    case UPDATE_NOT_CHECKED:
      $status = dt('Unable to check status');
      break;
    case UPDATE_UNKNOWN:
    default:
      $status = dt('Unknown');
      break;
  }
  return $status;
}