You are here

function backup_migrate_ui_schedule_create in Backup and Migrate 5.2

Get a form to create a new schedule.

1 string reference to 'backup_migrate_ui_schedule_create'
backup_migrate_menu in ./backup_migrate.module
Implementation of hook_menu().

File

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

Code

function backup_migrate_ui_schedule_create() {
  $schedule = array(
    'name' => t("Untitled Schedule"),
    'enabled' => 1,
    'keep' => 0,
    'period' => 60 * 60 * 24,
  );
  $output = drupal_get_form('backup_migrate_ui_schedule_configure_form', $schedule);
  return $output;
}