1 update.inc | update_backup_enabled() |
Check if backups are enabled during the update.php process.
File
- core/
includes/ update.inc, line 1049 - Backdrop site update API.
Code
function update_backup_enabled() {
// Backups are disabled when upgrading from Drupal 7, and if the
// $settings['backup_directory'] is set to FALSE in settings.php.
return state_get('update_d7_upgrade', FALSE) === FALSE && backup_get_backup_directory() !== FALSE;
}