You are here

function patchinfo_update_projects_alter in PatchInfo 7

Same name and namespace in other branches
  1. 8.2 patchinfo.module \patchinfo_update_projects_alter()
  2. 8 patchinfo.module \patchinfo_update_projects_alter()

Implements hook_update_projects_alter().

File

./patchinfo.module, line 24
Patch Info primary module file.

Code

function patchinfo_update_projects_alter(&$projects) {
  $excluded_modules = variable_get('patchinfo_exclude_from_update_check', array());

  // Hide excluded modules from update check.
  if (count($excluded_modules) > 0) {
    foreach ($excluded_modules as $module) {
      if (isset($projects[$module])) {
        unset($projects[$module]);
      }
    }
  }
}