function backup_migrate_backup_migrate_schedules in Backup and Migrate 7.2
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()
- 6.3 backup_migrate.module \backup_migrate_backup_migrate_schedules()
- 7.3 backup_migrate.module \backup_migrate_backup_migrate_schedules()
Implementation of hook_backup_migrate_destinations().
Get the default NodeSquirrel destination.
File
- ./
backup_migrate.module, line 238 - 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() {
$schedules = array();
if (variable_get('nodesquirrel_schedule', 60 * 60 * 24) && variable_get('nodesquirrel_secret_key', FALSE) != FALSE) {
$schedule = array(
'schedule_id' => 'nodesquirrel',
'name' => 'NodeSquirrel',
'source_id' => 'db',
'destination_id' => 'nodesquirrel',
'profile_id' => 'default',
'period' => variable_get('nodesquirrel_schedule', 60 * 60 * 24),
'enabled' => variable_get('nodesquirrel_secret_key', FALSE) != FALSE,
);
$schedules['nodesquirrel'] = backup_migrate_crud_create_item('schedule', $schedule);
}
return $schedules;
}