function backup_db_requirements in Backup Database 8
Implements hook_requirements().
File
- ./
backup_db.install, line 11 - backup_db.install
Code
function backup_db_requirements($phase) {
$requirements = [];
if ($phase == 'install') {
if (!class_exists('\\Ifsnop\\Mysqldump\\Mysqldump')) {
$requirements['backup_db_mysqldump'] = [
'description' => t('Backup Database requires the Ifsnop\\Mysqldump library, please read the readme.md and install via composer.'),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}