1 system.admin.inc 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. This parameter will be removed in Backdrop 2.0.

See also



core/modules/system/system.admin.inc, line 2312
Admin page callbacks for the System module.


function system_status($check = FALSE) {
  // Load .install files
  include_once BACKDROP_ROOT . '/core/includes/install.inc';
  $requirements = system_get_requirements();

  // @todo remove this check and return in Backdrop 2.0.
  if ($check) {
    return backdrop_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
    ->expression('uid', 'uid - uid')
    ->condition('name', '')
    ->condition('pass', '')
    ->condition('status', 0)
  return theme('status_report', array('requirements' => $requirements));