You are here

public function FeedsCrawlerBase::configFormValidate in Feeds Crawler 7.2

File

src/FeedsCrawlerBase.php, line 126
Contains FeedsCrawler.

Class

FeedsCrawlerBase
The fetcher class that implements crawling.

Code

public function configFormValidate(&$values) {
  $values['num_pages'] = (int) $values['num_pages'];
  $values['delay'] = (int) $values['delay'];
  if ($values['delay'] < 0) {
    form_set_error('delay', t('<em class="placeholder">Delay</em> must be greater than or equal to zero.'));
  }
}