public function backup_migrate_files_destination_archivesource::backup_settings_default in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.3 includes/sources.archivesource.inc \backup_migrate_files_destination_archivesource::backup_settings_default()
- 6.3 includes/sources.archivesource.inc \backup_migrate_files_destination_archivesource::backup_settings_default()
Gets the form for the settings for this destination.
Overrides backup_migrate_destination_filesource::backup_settings_default
File
- includes/
sources.archivesource.inc, line 60 - A destination type for saving locally to the server.
Class
- backup_migrate_files_destination_archivesource
- A destination type for saving locally to the server.
Code
public function backup_settings_default() {
$out = parent::backup_settings_default();
$excludes = explode("\n", $out['exclude_filepaths']);
foreach ($excludes as $i => $exclude) {
$excludes[$i] = 'public://' . $exclude;
}
$excludes[] = 'private://backup_migrate';
$excludes[] = conf_path() . '/settings.php';
$excludes[] = file_directory_temp();
return array(
'exclude_filepaths' => implode("\n", $excludes),
);
}