function backup_migrate_get_schedules in Backup and Migrate 5.2
Same name and namespace in other branches
- 8.2 includes/schedules.inc \backup_migrate_get_schedules()
- 8.3 includes/schedules.inc \backup_migrate_get_schedules()
- 6.3 includes/schedules.inc \backup_migrate_get_schedules()
- 6.2 includes/schedules.inc \backup_migrate_get_schedules()
- 7.3 includes/schedules.inc \backup_migrate_get_schedules()
- 7.2 includes/schedules.inc \backup_migrate_get_schedules()
Get all the available backup schedules.
3 calls to backup_migrate_get_schedules()
- backup_migrate_get_schedule in includes/
schedules.inc - Get the schedule info for the schedule with the given ID, or NULL if none exists.
- backup_migrate_schedules_run in includes/
schedules.inc - Run the preconfigured schedules. Called on cron.
- backup_migrate_ui_schedule_display_schedules in includes/
schedules.inc - List the the available schedules in the UI.
File
- includes/
schedules.inc, line 33 - All of the schedule handling code needed for Backup and Migrate.
Code
function backup_migrate_get_schedules() {
static $schedules = NULL;
// Get the list of schedules and cache them locally.
if ($schedules === NULL) {
$schedules = array();
$all_schedules = module_invoke_all('backup_migrate_schedules');
// Reindex since module_invoke_all stomps on numerical indices (thanks to array_merge).
foreach ($all_schedules as $schedule) {
$schedules[$schedule['schedule_id']] = $schedule;
}
}
return $schedules;
}