You are here

public function UltimateCronLogEntry::formatInitMessage in Ultimate Cron 7.2

Format initial message.

File

./ultimate_cron.plugin.inc, line 1587
Plugin framework for Ultimate Cron.

Class

UltimateCronLogEntry
Abstract class for Ultimate Cron log entries.

Code

public function formatInitMessage() {
  if ($this->start_time) {
    return $this->init_message ? $this->init_message . ' ' . t('by') . ' ' . $this
      ->formatUser() : t('N/A');
  }
  else {
    $registered = variable_get('ultimate_cron_hooks_registered', array());
    return !empty($registered[$this->name]) ? t('Registered at @datetime', array(
      '@datetime' => format_date($registered[$this->name], 'custom', 'Y-m-d H:i:s'),
    )) : t('N/A');
  }
}