function backup_migrate_backup_migrate_schedules in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 backup_migrate.module \backup_migrate_backup_migrate_schedules()
- 5.2 includes/schedules.inc \backup_migrate_backup_migrate_schedules()
- 7.3 backup_migrate.module \backup_migrate_backup_migrate_schedules()
- 7.2 backup_migrate.module \backup_migrate_backup_migrate_schedules()
Implementation of hook_backup_migrate_destinations().
File
- ./
backup_migrate.module, line 361 - Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)
Code
function backup_migrate_backup_migrate_schedules() {
backup_migrate_include('sources');
$sources = backup_migrate_get_sources();
$schedules = array();
foreach ($sources as $id => $source) {
$schedule = array(
'schedule_id' => $id,
'name' => $source
->get('name'),
'source_id' => $id,
'destination_id' => 'scheduled',
'profile_id' => 'default',
'period' => variable_get('backup_migrate_default_schedule', 60 * 60 * 24),
'keep' => BACKUP_MIGRATE_SMART_DELETE,
'enabled' => FALSE,
);
$schedules[$id] = backup_migrate_crud_create_item('schedule', $schedule);
}
return $schedules;
}