summaryrefslogtreecommitdiff
path: root/modules/update/update.fetch.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-05 01:04:11 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-05 01:04:11 +0000
commitc86883271aa54d12b3e0d377fcca4473a3ea077c (patch)
tree391aa4d4bfcd1bd6739bcc65da5730a074848f6a /modules/update/update.fetch.inc
parentaba81ab9ddebb1ec20f5348d011ee714a1912941 (diff)
downloadbrdo-c86883271aa54d12b3e0d377fcca4473a3ea077c.tar.gz
brdo-c86883271aa54d12b3e0d377fcca4473a3ea077c.tar.bz2
#445748 by dww and Dave Reid: Add a hook_update_projects_alter() for modules that wish to do modify data in update status module.
Diffstat (limited to 'modules/update/update.fetch.inc')
-rw-r--r--modules/update/update.fetch.inc5
1 files changed, 4 insertions, 1 deletions
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);