Full ELMS Learning Network documentation
function theme_status_report
×
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 system.admin.inc | theme_status_report($variables) |
cle7 system.admin.inc | theme_status_report($variables) |
elmsmedia7 system.admin.inc | theme_status_report($variables) |
icor7 system.admin.inc | theme_status_report($variables) |
meedjum_blog7 system.admin.inc | theme_status_report($variables) |
mooc7 system.admin.inc | theme_status_report($variables) |
Returns HTML for the status report.
Parameters
$variables: An associative array containing:
- requirements: An array of requirements.
Related topics
4 theme calls to theme_status_report()
- install_verify_requirements in includes/
install.core.inc - Verifies the requirements for installing Drupal.
- system_status in modules/
system/ system.admin.inc - Menu callback: displays the site status report. Can also be used as a pure check.
- update_check_requirements in ./
update.php - Checks update requirements and reports errors and (optionally) warnings.
- wysiwyg_profile_overview in sites/
all/ modules/ ulmus/ wysiwyg/ wysiwyg.admin.inc - Display overview of setup Wysiwyg Editor profiles; menu callback.
6 string references to the theme hook from theme_status_report()
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.
- hook_theme in modules/
system/ system.api.php - Register a module (or theme's) theme implementations.
- install_verify_requirements in includes/
install.core.inc - Verifies the requirements for installing Drupal.
- system_status in modules/
system/ system.admin.inc - Menu callback: displays the site status report. Can also be used as a pure check.
- system_theme in modules/
system/ system.module - Implements hook_theme().
- update_check_requirements in ./
update.php - Checks update requirements and reports errors and (optionally) warnings.
File
- modules/
system/ system.admin.inc, line 2555 - Admin page callbacks for the system module.
Code
function theme_status_report($variables) {
$requirements = $variables['requirements'];
$severities = array(
REQUIREMENT_INFO => array(
'title' => t('Info'),
'class' => 'info',
),
REQUIREMENT_OK => array(
'title' => t('OK'),
'class' => 'ok',
),
REQUIREMENT_WARNING => array(
'title' => t('Warning'),
'class' => 'warning',
),
REQUIREMENT_ERROR => array(
'title' => t('Error'),
'class' => 'error',
),
);
$output = '<table class="system-status-report">';
foreach ($requirements as $requirement) {
if (empty($requirement['#type'])) {
$severity = $severities[isset($requirement['severity']) ? (int) $requirement['severity'] : REQUIREMENT_OK];
$severity['icon'] = '<div title="' . $severity['title'] . '"><span class="element-invisible">' . $severity['title'] . '</span></div>';
// Output table row(s)
if (!empty($requirement['description'])) {
$output .= '<tr class="' . $severity['class'] . ' merge-down"><td class="status-icon">' . $severity['icon'] . '</td><td class="status-title">' . $requirement['title'] . '</td><td class="status-value">' . $requirement['value'] . '</td></tr>';
$output .= '<tr class="' . $severity['class'] . ' merge-up"><td colspan="3" class="status-description">' . $requirement['description'] . '</td></tr>';
}
else {
$output .= '<tr class="' . $severity['class'] . '"><td class="status-icon">' . $severity['icon'] . '</td><td class="status-title">' . $requirement['title'] . '</td><td class="status-value">' . $requirement['value'] . '</td></tr>';
}
}
}
$output .= '</table>';
return $output;
}