You are here

function backup_migrate_backup_migrate_schedules in Backup and Migrate 5.2

Same name and namespace in other branches
  1. 8.3 backup_migrate.module \backup_migrate_backup_migrate_schedules()
  2. 6.3 backup_migrate.module \backup_migrate_backup_migrate_schedules()
  3. 7.3 backup_migrate.module \backup_migrate_backup_migrate_schedules()
  4. 7.2 backup_migrate.module \backup_migrate_backup_migrate_schedules()

Implementation of hook_backup_migrate_schedules().

Get the backup schedules stored in the db.

File

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

Code

function backup_migrate_backup_migrate_schedules() {

  // Get the saved scheduless
  $result = db_query('SELECT * FROM {backup_migrate_schedules}');
  while ($schedule = db_fetch_array($result)) {
    $schedule['db'] = TRUE;
    $out[$schedule['schedule_id']] = $schedule;
  }
  return $out;
}