You are here

function theme_maillog_header_all in Maillog / Mail Developer 6

Same name and namespace in other branches
  1. 7 maillog.module \theme_maillog_header_all()

Render the 'Header' field in the node type 'Logged Mail'

1 theme call to theme_maillog_header_all()
theme_maillog in ./maillog.module

File

./maillog.module, line 265
Provides a 'maillog' node type

Code

function theme_maillog_header_all($header_all) {
  $output = '';
  $output .= '<div class="field mail-log-header-all">';
  $output .= '<div class="field-label">' . t('Header') . ':</div>';
  $output .= '<div class="field-item">';
  foreach ($header_all as $header_all_name => $header_all_value) {
    $output .= '<div class="mail-log-header-all-subitem">';
    $output .= check_plain($header_all_name) . ': ' . check_plain($header_all_value);
    $output .= '</div>';
  }
  $output .= '</div>';
  $output .= '</div>';
  return $output;
}