From c86883271aa54d12b3e0d377fcca4473a3ea077c Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 5 Jun 2009 01:04:11 +0000 Subject: #445748 by dww and Dave Reid: Add a hook_update_projects_alter() for modules that wish to do modify data in update status module. --- modules/update/update.fetch.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/update/update.fetch.inc') diff --git a/modules/update/update.fetch.inc b/modules/update/update.fetch.inc index 5230dc359..b7d59ec98 100644 --- a/modules/update/update.fetch.inc +++ b/modules/update/update.fetch.inc @@ -91,7 +91,10 @@ function _update_build_fetch_url($project, $site_key = '') { $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); -- cgit v1.2.3