You are here

public function UltimateCronCacheLogger::settingsForm in Ultimate Cron 7.2

Settings form.

Overrides UltimateCronPlugin::settingsForm

File

plugins/ultimate_cron/logger/cache.class.php, line 59
Cache logger for Ultimate Cron.

Class

UltimateCronCacheLogger
Class for using cache as storage for logs.

Code

public function settingsForm(&$form, &$form_state, $job = NULL) {
  $elements =& $form['settings'][$this->type][$this->name];
  $values =& $form_state['values']['settings'][$this->type][$this->name];
  $elements['bin'] = array(
    '#type' => 'textfield',
    '#title' => t('Cache bin'),
    '#description' => t('Select which cache bin to use for storing logs.'),
    '#default_value' => $values['bin'],
    '#fallback' => TRUE,
    '#required' => TRUE,
  );
  $elements['timeout'] = array(
    '#type' => 'textfield',
    '#title' => t('Cache timeout'),
    '#description' => t('Seconds before cache entry expires (0 = never, -1 = on next general cache wipe).'),
    '#default_value' => $values['timeout'],
    '#fallback' => TRUE,
    '#required' => TRUE,
  );
}