You are here

public function DateiCalFeedsParser::configForm in Date iCal 7.3

Builds the configuration form.

File

includes/DateiCalFeedsParser.inc, line 97
DateiCalFeedsParser is Date iCal's Feeds parser plugin.

Class

DateiCalFeedsParser
@file DateiCalFeedsParser is Date iCal's Feeds parser plugin.

Code

public function configForm(&$form_state) {
  $form = array();
  $form['indefinite_count'] = array(
    '#title' => t('Indefinite COUNT'),
    '#type' => 'select',
    '#options' => array(
      '31' => '31',
      '52' => '52',
      '90' => '90',
      '365' => '365',
    ),
    '#description' => t('Indefinitely repeating events are not supported. The repeat count will instead be set to this number.'),
    '#default_value' => $this->config['indefinite_count'],
  );
  $form['indefinite_message_display'] = array(
    '#title' => t('Display message when RRULE is missing COUNT'),
    '#type' => 'checkbox',
    '#default_value' => $this->config['indefinite_message_display'],
    '#description' => t('Display a message when an indefinitely repeating rule is adjusted by the "Indefinite COUNT" setting above.'),
  );
  $form['until_not_utc'] = array(
    '#title' => t('RRULE UNTILs are not in UTC'),
    '#type' => 'checkbox',
    '#description' => t('Enable this setting if your reccuring events are not repeating the correct number of times. ' . 'The iCal spec requires that the UNTIL value in an RRULE almost always be specified in UTC, but some iCal feed creators fail to follow that rule ' . '(the UNTIL values in those feeds\' RRULEs don\'t end is "Z"). This causes the UNTIL value to be off by several hours, ' . 'which can cause the repeat calculator to miss or add repeats.'),
    '#default_value' => $this->config['until_not_utc'],
  );
  $form['skip_days'] = array(
    '#title' => t('Skip events more than X days old'),
    '#type' => 'textfield',
    '#size' => 5,
    '#description' => t('Set this value to any positive integer (or 0) to skip events which ended more than that many days before the import. ' . 'Leave it blank to import all events.'),
    '#default_value' => $this->config['skip_days'],
  );
  return $form;
}