function theme_authorize_message

Returns HTML for a single log message from the authorize.php batch operation.

Parameters

$variables: An associative array containing:

  • message: The log message.
  • success: A boolean indicating failure or success.

Related topics

1 theme call to theme_authorize_message()
theme_authorize_report in includes/theme.maintenance.inc
Returns HTML for a results report of an operation run by authorize.php.

File

includes/theme.maintenance.inc, line 201

Code

function theme_authorize_message($variables) {
    $message = $variables['message'];
    $success = $variables['success'];
    if ($success) {
        $item = array(
            'data' => $message,
            'class' => array(
                'success',
            ),
        );
    }
    else {
        $item = array(
            'data' => '<strong>' . $message . '</strong>',
            'class' => array(
                'failure',
            ),
        );
    }
    return $item;
}

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