public function FeedsCrawlerBase::configForm in Feeds Crawler 7.2
File
- src/
FeedsCrawlerBase.php, line 94 - Contains FeedsCrawler.
Class
- FeedsCrawlerBase
- The fetcher class that implements crawling.
Code
public function configForm(&$form_state) {
$form = array();
$form['num_pages'] = array(
'#type' => 'textfield',
'#title' => t('Page count'),
'#description' => t('The number of pages to crawl. Set to 0 for unlimited.'),
'#default_value' => $this->config['num_pages'],
'#element_validate' => array(
'element_validate_integer_positive',
),
);
$form['delay'] = array(
'#type' => 'textfield',
'#title' => t('Delay'),
'#description' => t('The delay (in seconds) to wait between fetching pages.'),
'#default_value' => $this->config['delay'],
'#element_validate' => array(
'element_validate_integer',
),
);
$form['first_run'] = array(
'#type' => 'checkbox',
'#title' => t('First run'),
'#description' => t('Only crawl pages on the first run of the import.'),
'#default_value' => $this->config['first_run'],
);
return $form + parent::configForm($form_state);
}