You are here

function backup_migrate_schedule::get_frequency_description in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 8.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
  2. 8.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
  3. 6.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
  4. 7.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
  5. 7.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()

Format a frequency in human-readable form.

File

includes/schedules.inc, line 155

Class

backup_migrate_schedule
A schedule class for crud operations.

Code

function get_frequency_description() {
  $period = $this
    ->get_frequency_period();
  $out = format_plural($this->period / $period['seconds'], $period['singular'], $period['plural']);
  return $out;
}