function db_status_report in Drupal 5
Same name in this branch
- 5 includes/database.mysqli.inc \db_status_report()
- 5 includes/database.mysql.inc \db_status_report()
- 5 includes/database.pgsql.inc \db_status_report()
Same name and namespace in other branches
- 6 includes/database.mysqli.inc \db_status_report()
- 6 includes/database.mysql.inc \db_status_report()
- 6 includes/database.pgsql.inc \db_status_report()
Report database status.
Related topics
1 call to db_status_report()
- system_requirements in modules/
system/ system.install - Test and report Drupal installation requirements.
1 string reference to 'db_status_report'
- system_requirements in modules/
system/ system.install - Test and report Drupal installation requirements.
File
- includes/
database.mysql.inc, line 17 - Database interface code for MySQL database servers.
Code
function db_status_report($phase) {
$t = get_t();
$version = db_version();
$form['mysql'] = array(
'title' => $t('MySQL database'),
'value' => $phase == 'runtime' ? l($version, 'admin/logs/status/sql') : $version,
);
if (version_compare($version, DRUPAL_MINIMUM_MYSQL) < 0) {
$form['mysql']['severity'] = REQUIREMENT_ERROR;
$form['mysql']['description'] = $t('Your MySQL Server is too old. Drupal requires at least MySQL %version.', array(
'%version' => DRUPAL_MINIMUM_MYSQL,
));
}
return $form;
}