function theme_update_version


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_update_version($variables)
cle7 theme_update_version($variables)
elmsmedia7 theme_update_version($variables)
icor7 theme_update_version($variables)
meedjum_blog7 theme_update_version($variables)
mooc7 theme_update_version($variables)

Returns HTML for the version display of a project.


array $variables: An associative array containing:

  • version: An array of data about the latest released version, containing:

    • version: The version number.
    • release_link: The URL for the release notes.
    • date: The date of the release.
    • download_link: The URL for the downloadable file.
  • tag: The title of the project.
  • class: A string containing extra classes for the wrapping table.

Related topics

1 theme call to theme_update_version()
theme_update_report in modules/update/
Returns HTML for the project status report.
2 string references to the theme hook from theme_update_version()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

theme_update_report in modules/update/
Returns HTML for the project status report.
update_theme in modules/update/update.module
Implements hook_theme().


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


function theme_update_version($variables) {
  $version = $variables['version'];
  $tag = $variables['tag'];
  $class = implode(' ', $variables['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__update_version', array('links' => $links));
  $output .= '</td>';
  $output .= '</tr>';
  $output .= "</table>\n";
  return $output;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.