You are here

function backup_migrate_get_schedules in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/schedules.inc \backup_migrate_get_schedules()
  2. 8.3 includes/schedules.inc \backup_migrate_get_schedules()
  3. 5.2 includes/schedules.inc \backup_migrate_get_schedules()
  4. 6.3 includes/schedules.inc \backup_migrate_get_schedules()
  5. 6.2 includes/schedules.inc \backup_migrate_get_schedules()
  6. 7.2 includes/schedules.inc \backup_migrate_get_schedules()

Get all the available backup schedules.

7 calls to backup_migrate_get_schedules()
backup_migrate_cronapi in ./backup_migrate.module
Implements hook_cronapi().
backup_migrate_drush_schedules in includes/backup_migrate.drush.inc
Get a list of available destinations.
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_cron in includes/schedules.inc
Run the preconfigured schedules. Called on cron.
backup_migrate_schedules_run in includes/schedules.inc
Run the preconfigured schedules regardless of scheduled time settings.

... See full list

File

includes/schedules.inc, line 82
All of the schedule handling code needed for Backup and Migrate.

Code

function backup_migrate_get_schedules() {
  $schedules =& drupal_static('backup_migrate_get_schedules');

  // Get the list of schedules and cache them locally.
  if ($schedules === NULL) {
    $schedules = backup_migrate_crud_get_items('schedule');
  }
  return $schedules;
}