You are here

function db_status_report in Drupal 5

Same name in this branch
  1. 5 includes/database.mysqli.inc \db_status_report()
  2. 5 includes/database.mysql.inc \db_status_report()
  3. 5 includes/database.pgsql.inc \db_status_report()
Same name and namespace in other branches
  1. 6 includes/database.mysqli.inc \db_status_report()
  2. 6 includes/database.mysql.inc \db_status_report()
  3. 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.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;
}