You are here

function theme_update_detailed_email in Update Status Detailed Email 6

Same name and namespace in other branches
  1. 7 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

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

Return value

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
Implementation of hook_theme_registry_alter().

File

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

Code

function theme_update_detailed_email($data) {
  if (strpos($_GET['q'], 'admin/reports/updates') === FALSE) {
    return theme('update_detailed_email_message', $data);
  }
  else {
    return theme_update_report($data);
  }
}