You are here

function theme_update_version in Drupal 6

Same name and namespace in other branches
  1. 7 modules/update/update.report.inc \theme_update_version()

Theme the version display of a project.

Related topics

1 theme call to theme_update_version()
theme_update_report in modules/update/update.report.inc
Theme project status report.

File

modules/update/update.report.inc, line 240
Code required only when rendering the available updates report.

Code

function theme_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">';
  $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;
}