theme_authorize_message
function theme_authorize_message
theme_authorize_message($variables)
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
File
- includes/theme.maintenance.inc, line 201
- Theming for maintenance pages.
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!theme.maintenance.inc/function/theme_authorize_message/7.x