You are here

function _backup_migrate_schedule_get_frequency_period in Backup and Migrate 5.2

Get the period of the frequency (ie: seconds, minutes etc.)

2 calls to _backup_migrate_schedule_get_frequency_period()
backup_migrate_ui_schedule_configure_form in includes/schedules.inc
Get a form to configure the schedule.
_backup_migrate_schedule_format_frequency in includes/schedules.inc
Format a frequency in human-readable form.

File

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

Code

function _backup_migrate_schedule_get_frequency_period($frequency) {
  $out = "";
  foreach (array_reverse(_backup_migrate_frequency_periods()) as $period) {
    if ($period['seconds'] && $frequency % $period['seconds'] === 0) {
      return $period;
    }
  }
}