public function backup_migrate_schedule::get_default_values in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/schedules.inc \backup_migrate_schedule::get_default_values()
- 8.3 includes/schedules.inc \backup_migrate_schedule::get_default_values()
- 6.3 includes/schedules.inc \backup_migrate_schedule::get_default_values()
- 6.2 includes/schedules.inc \backup_migrate_schedule::get_default_values()
- 7.2 includes/schedules.inc \backup_migrate_schedule::get_default_values()
Get the default values for this item.
Overrides backup_migrate_item::get_default_values
File
- includes/
schedules.inc, line 125 - All of the schedule handling code needed for Backup and Migrate.
Class
- backup_migrate_schedule
- A schedule class for crud operations.
Code
public function get_default_values() {
return array(
'name' => t("Untitled Schedule"),
'source_id' => 'db',
'enabled' => 1,
'keep' => BACKUP_MIGRATE_KEEP_ALL,
'period' => 60 * 60 * 24,
'storage' => BACKUP_MIGRATE_STORAGE_NONE,
'cron' => BACKUP_MIGRATE_CRON_BUILTIN,
'cron_schedule' => '0 4 * * *',
);
}