You are here

function theme_update_detailed_email_message_version in Update Status Detailed Email 7

Same name and namespace in other branches
  1. 6 update_detailed_email.module \theme_update_detailed_email_message_version()

Theme a project version.

Parameters

array $variables: An array of variables, including:

  • version
  • title

Return value

string Themed output.

1 theme call to theme_update_detailed_email_message_version()
theme_update_detailed_email_message in ./update_detailed_email.module
Theme the detailed update email.

File

./update_detailed_email.module, line 357
Adds detail to the email message Drupal core's Update Status sends.

Code

function theme_update_detailed_email_message_version($variables) {
  $version = $variables['version'];
  $output = "<br />\n";
  $output .= t($variables['title']);
  $output .= ' ' . l($version['version'], $version['release_link']);
  $output .= ' (' . format_date($version['date'], 'custom', 'Y-M-d') . ') ';
  $output .= ' ' . l(t('Download'), $version['download_link']);
  $output .= ' | ' . l(t('Release notes'), $version['release_link']);
  return $output;
}