Index: cvs_deploy.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/cvs_deploy/cvs_deploy.module,v
retrieving revision 1.20.2.2
diff -u -F^f -r1.20.2.2 cvs_deploy.module
--- cvs_deploy.module	30 Apr 2009 07:29:32 -0000	1.20.2.2
+++ cvs_deploy.module	17 Jul 2009 17:55:59 -0000
@@ -191,3 +191,46 @@ function _cvs_deploy_find_latest_update(
   }
   return $timestamp;
 }
+
+/**
+ * Register this module to override theme_update_version().
+ */
+function cvs_deploy_theme_registry_alter($theme_registry) {
+	if (isset($theme_registry['update_version']['function'])) {
+		$theme_registry['update_version']['function'] = 'cvs_deploy_update_version';
+	}
+}
+
+/**
+ * Replace module version labels on Update Status page with CVS tags.
+ * Theme function override with help of hook_theme_registry_alter().
+ */
+function cvs_deploy_update_version($version, $tag, $class) {
+  $output = '';
+  $output .= '<table class="version '. $class .'">';
+  $output .= '<tr>';
+  $output .= '<td class="version-title">'. $tag ."</td>\n";
+  $output .= '<td class="version-details">';
+  if (module_exists('cvs_deploy')) {
+    $output .= l($version['tag'], $version['release_link'], array('attributes' => array('title' => $version['version'])));
+  } else {
+    $output .= l($version['version'], $version['release_link']);
+  }
+  $output .= ' <span class="version-date">('. format_date($version['date'], 'custom', 'Y-M-d') .')</span>';
+  $output .= "</td>\n";
+  $output .= '<td class="version-links">';
+  $links = array();
+  $links['update-download'] = array(
+    'title' => t('Download'),
+    'href' => $version['download_link'],
+  );
+  $links['update-release-notes'] = array(
+    'title' => t('Release notes'),
+    'href' => $version['release_link'],
+  );
+  $output .= theme('links', $links);
+  $output .= '</td>';
+  $output .= '</tr>';
+  $output .= "</table>\n";
+  return $output;
+}
