function theme_authorize_report

Returns HTML for a results report of an operation run by authorize.php.

Parameters

$variables: An associative array containing:

  • messages: An array of result messages.

Related topics

1 theme call to theme_authorize_report()
authorize.php in ./authorize.php
Administrative script for running authorized file operations.

File

includes/theme.maintenance.inc, line 171

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.