You are here

public function UltimateCronBackgroundProcessLegacyLauncher::formatRunning in Ultimate Cron 7.2

Format running state.

Overrides UltimateCronLauncher::formatRunning

File

plugins/ultimate_cron/launcher/background_process_legacy.class.php, line 674
Background Process 1.x launcher for Ultimate Cron.

Class

UltimateCronBackgroundProcessLegacyLauncher
Ultimate Cron launcher plugin class.

Code

public function formatRunning($job) {
  $settings = $job
    ->getSettings('launcher');
  if (empty($settings['daemonize'])) {
    return parent::formatRunning($job);
  }
  $file = drupal_get_path('module', 'ultimate_cron') . '/icons/hourglass_go.png';
  $status = theme('image', array(
    'path' => $file,
  ));
  $title = t('daemonized');
  return array(
    $status,
    $title,
  );
}