function backup_migrate_schedule::get_frequency_description in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
- 8.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
- 6.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
- 7.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
- 7.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_description()
Format a frequency in human-readable form.
1 call to backup_migrate_schedule::get_frequency_description()
- backup_migrate_schedule::get_profile in includes/
schedules.inc - Get the destination of the schedule.
File
- includes/
schedules.inc, line 298 - All of the schedule handling code needed for Backup and Migrate.
Class
- backup_migrate_schedule
- A schedule class for crud operations.
Code
function get_frequency_description() {
$period = $this
->get_frequency_period();
$cron = $this
->get('cron');
if ($cron == BACKUP_MIGRATE_CRON_BUILTIN) {
$out = format_plural($this->period / $period['seconds'], $period['singular'], $period['plural']);
}
else {
if ($cron == BACKUP_MIGRATE_CRON_ELYSIA) {
$out = $this
->get('cron_schedule');
}
else {
$out = t('None');
}
}
return $out;
}