function theme_authorize_message

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 theme.maintenance.inc theme_authorize_message($variables)
cle7 theme.maintenance.inc theme_authorize_message($variables)
elmsmedia7 theme.maintenance.inc theme_authorize_message($variables)
icor7 theme.maintenance.inc theme_authorize_message($variables)
meedjum_blog7 theme.maintenance.inc theme_authorize_message($variables)
mooc7 theme.maintenance.inc 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

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.
2 string references to the theme hook from theme_authorize_message()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in includes/common.inc
Provides theme registration for themes across .inc files.
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
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;
}