/** * Format running state. */ 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); }
/** * Default settings. */ public function defaultSettings() { return array('max_threads' => 1, 'thread' => 'any', 'lock_timeout' => 3600, 'poorman_keepalive' => FALSE) + parent::defaultSettings(); }