function system_status in Drupal 5
Same name and namespace in other branches
- 6 modules/system/system.admin.inc \system_status()
- 7 modules/system/system.admin.inc \system_status()
Menu callback: displays the site status report. Can also be used as a pure check.
Parameters
$check: If true, only returns a boolean whether there are system status errors.
1 call to system_status()
- system_main_admin_page in modules/
system/ system.module - Provide the administration overview page.
1 string reference to 'system_status'
- system_menu in modules/
system/ system.module - Implementation of hook_menu().
File
- modules/
system/ system.module, line 1840 - Configuration system that lets administrators modify the workings of the site.
Code
function system_status($check = FALSE) {
// Load .install files
include_once './includes/install.inc';
drupal_load_updates();
// Check run-time requirements and status information
$requirements = module_invoke_all('requirements', 'runtime');
usort($requirements, '_system_sort_requirements');
if ($check) {
return drupal_requirements_severity($requirements) == REQUIREMENT_ERROR;
}
return theme('status_report', $requirements);
}