You are here

function backup_migrate_requirements in Backup and Migrate 5.2

Same name and namespace in other branches
  1. 8.2 backup_migrate.install \backup_migrate_requirements()
  2. 8.3 backup_migrate.install \backup_migrate_requirements()
  3. 6.3 backup_migrate.install \backup_migrate_requirements()
  4. 6.2 backup_migrate.install \backup_migrate_requirements()
  5. 7.3 backup_migrate.install \backup_migrate_requirements()
  6. 7.2 backup_migrate.install \backup_migrate_requirements()

@file Install hooks for Backup and Migrate.

File

./backup_migrate.install, line 9
Install hooks for Backup and Migrate.

Code

function backup_migrate_requirements($phase) {
  $requirements = array();
  if ($GLOBALS['db_type'] !== 'mysqli' && $GLOBALS['db_type'] !== 'mysql') {
    $requirements['db_type']['description'] = $t('This module is only compatible with MySQL databases.');
    $requirements['db_type']['severity'] = REQUIREMENT_ERROR;
  }
}