cvs diff: Diffing modules/update Index: modules/update/update.compare.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/update/update.compare.inc,v retrieving revision 1.8.2.3 diff -u -p -r1.8.2.3 update.compare.inc --- modules/update/update.compare.inc 29 Apr 2009 18:43:11 -0000 1.8.2.3 +++ modules/update/update.compare.inc 5 Jun 2009 00:40:23 -0000 @@ -38,6 +38,8 @@ function update_get_projects() { // Still empty, so we have to rebuild the cache. _update_process_info_list($projects, module_rebuild_cache(), 'module'); _update_process_info_list($projects, system_theme_data(), 'theme'); + // Allow other modules to alter projects before fetching and comparing. + drupal_alter('update_projects', $projects); // Cache the site's project data for at most 1 hour. _update_cache_set('update_project_projects', $projects, time() + 3600); } Index: modules/update/update.fetch.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/update/update.fetch.inc,v retrieving revision 1.7.2.4 diff -u -p -r1.7.2.4 update.fetch.inc --- modules/update/update.fetch.inc 29 Apr 2009 18:43:11 -0000 1.7.2.4 +++ modules/update/update.fetch.inc 5 Jun 2009 00:40:23 -0000 @@ -92,7 +92,10 @@ function _update_build_fetch_url($projec $name = $project['name']; $url = $project['info']['project status url']; $url .= '/'. $name .'/'. DRUPAL_CORE_COMPATIBILITY; - if (!empty($site_key)) { + // Only append a site_key and the version information if we have a site_key + // in the first place, and if this is not a disabled module or theme. We do + // not want to record usage statistics for disabled code. + if (!empty($site_key) && (strpos($project['project_type'], 'disabled') === FALSE)) { $url .= (strpos($url, '?') === TRUE) ? '&' : '?'; $url .= 'site_key='; $url .= drupal_urlencode($site_key);