function db_status_report in Drupal 6
Same name in this branch
- 6 includes/database.mysqli.inc \db_status_report()
- 6 includes/database.mysql.inc \db_status_report()
- 6 includes/database.pgsql.inc \db_status_report()
Same name and namespace in other branches
- 5 includes/database.mysqli.inc \db_status_report()
- 5 includes/database.mysql.inc \db_status_report()
- 5 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 - Implementation of hook_requirements().
1 string reference to 'db_status_report'
- system_requirements in modules/
system/ system.install - Implementation of hook_requirements().
File
- includes/
database.mysql.inc, line 19 - 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/reports/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;
}