| Versions | |
|---|---|
| 7 | theme_authorize_message($variables) |
Returns HTML for a single log message from the authorize.php batch operation.
$variables An associative array containing:
drupal/
<?php
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;
}
?>