system_status
modules/system/system.module, строка 1840
- Версии
- 5 – 6
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.
Код
<?php
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);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии