public function DateiCalFeedsParser::configFormValidate in Date iCal 7.3
Validation handler for configForm.
File
- includes/
DateiCalFeedsParser.inc, line 140 - DateiCalFeedsParser is Date iCal's Feeds parser plugin.
Class
- DateiCalFeedsParser
- @file DateiCalFeedsParser is Date iCal's Feeds parser plugin.
Code
public function configFormValidate(&$source_config) {
if (!preg_match('/^\\d+$/', $source_config['skip_days']) && $source_config['skip_days'] !== '') {
form_set_error('skip_days', 'You must enter a positive integer.');
}
if ($source_config['skip_days'] === '') {
$source_config['skip_days'] = NULL;
}
}