function system_status

7.x system.admin.inc system_status($check = FALSE)
6.x system.admin.inc system_status($check = FALSE)

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 drupal-6.x/modules/system/system.admin.inc
Menu callback; Provide the administration overview page.
1 string reference to 'system_status'
system_menu in drupal-6.x/modules/system/system.module
Implementation of hook_menu().

File

drupal-6.x/modules/system/system.admin.inc, line 1718
Admin page callbacks for the system module.

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;
  }
  // MySQL import might have set the uid of the anonymous user to autoincrement
  // value. Let's try fixing it. See http://drupal.org/node/204411
  db_query("UPDATE {users} SET uid = uid - uid WHERE name = '' AND pass = '' AND status = 0");

  return theme('status_report', $requirements);
}