You are here

function _backup_migrate_schedule_format_frequency in Backup and Migrate 5.2

Format a frequency in human-readable form.

1 call to _backup_migrate_schedule_format_frequency()
backup_migrate_ui_schedule_display_schedules in includes/schedules.inc
List the the available schedules in the UI.

File

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

Code

function _backup_migrate_schedule_format_frequency($frequency) {
  $period = _backup_migrate_schedule_get_frequency_period($frequency);
  $out = format_plural($frequency / $period['seconds'], $period['singular'], $period['plural']);
  return $out;
}