You are here

public function UltimateCronSimpleScheduler::formatLabel in Ultimate Cron 7.2

Label for schedule.

Overrides UltimateCronCrontabScheduler::formatLabel

File

plugins/ultimate_cron/scheduler/simple.class.php, line 68
Simple cron job scheduler for Ultimate Cron.

Class

UltimateCronSimpleScheduler
Simple scheduler.

Code

public function formatLabel($job) {
  $settings = $job
    ->getSettings($this->type);
  return t('Every @interval', array(
    '@interval' => format_interval($this->presets[$settings['rules'][0]]),
  ));
}