function system_status

7.x system_status($check = FALSE)

Menu callback: displays the site status report. Can also be used as a pure check.


$check: If true, only returns a boolean whether there are system status errors.

1 call to system_status()
system_admin_config_page in drupal/modules/system/
Menu callback; Provide the administration overview page.
3 string references to 'system_status'
drupal-6.bare.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.
drupal-6.filled.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
system_menu in drupal/modules/system/system.module
Implements hook_menu().


drupal/modules/system/, line 2313
Admin page callbacks for the system module.


function system_status($check = FALSE) {
  // Load .install files
  include_once DRUPAL_ROOT . '/includes/';

  // 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
  db_update('users')->expression('uid', 'uid - uid')->condition('name', '')->condition('pass', '')->condition('status', 0)->execute();
  return theme('status_report', array('requirements' => $requirements));