You are here

function theme_update_detailed_email in Update Status Detailed Email 7

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

Theme function to override the original update theme function.

If on the updates page, use the original function.

Parameters

array $variables: An array of update information for installed modules.

Return value

string Return either the orignal theme rendering of the data or the new one.

1 string reference to 'theme_update_detailed_email'
update_detailed_email_theme_registry_alter in ./update_detailed_email.module
Implements hook_theme_registry_alter().

File

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

Code

function theme_update_detailed_email($variables) {
  if (current_path() != 'admin/reports/updates') {
    return theme('update_detailed_email_message', $variables);
  }
  else {
    return theme_update_report($variables);
  }
}