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.pgsql.inc, line 16 - Database interface code for PostgreSQL database servers.
Code
function db_status_report() {
$t = get_t();
$version = db_version();
$form['pgsql'] = array(
'title' => $t('PostgreSQL database'),
'value' => $version,
);
if (version_compare($version, DRUPAL_MINIMUM_PGSQL) < 0) {
$form['pgsql']['severity'] = REQUIREMENT_ERROR;
$form['pgsql']['description'] = $t('Your PostgreSQL Server is too old. Drupal requires at least PostgreSQL %version.', array(
'%version' => DRUPAL_MINIMUM_PGSQL,
));
}
return $form;
}