theme_authorize_report

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 theme_authorize_report($variables)

Returns HTML for a report of the results from an operation run via authorize.php.

Parameters

$variables An associative array containing:

  • messages: An array of result messages.

Related topics

Code

includes/theme.maintenance.inc, line 171

<?php
function theme_authorize_report($variables) {
  $messages = $variables['messages'];
  $output = '';
  if (!empty($messages)) {
    $output .= '<div id="authorize-results">';
    foreach ($messages as $heading => $logs) {
      $items = array();
      foreach ($logs as $number => $log_message) {
        if ($number === '#abort') {
          continue;
        }
        $items[] = theme('authorize_message', array('message' => $log_message['message'], 'success' => $log_message['success']));
      }
      $output .= theme('item_list',   array('items' => $items, 'title' => $heading));
    }
    $output .= '</div>';
  }
  return $output;
}
?>