You are here

public function FeedsHTTPFetcher::configForm in Feeds 6

Same name and namespace in other branches
  1. 7.2 plugins/FeedsHTTPFetcher.inc \FeedsHTTPFetcher::configForm()
  2. 7 plugins/FeedsHTTPFetcher.inc \FeedsHTTPFetcher::configForm()

Override parent::configForm().

Overrides FeedsConfigurable::configForm

File

plugins/FeedsHTTPFetcher.inc, line 105

Class

FeedsHTTPFetcher
Fetches data via HTTP.

Code

public function configForm(&$form_state) {
  $form = array();
  $form['auto_detect_feeds'] = array(
    '#type' => 'checkbox',
    '#title' => t('Auto detect feeds'),
    '#description' => t('If the supplied URL does not point to a feed but an HTML document, attempt to extract a feed URL from the document.'),
    '#default_value' => $this->config['auto_detect_feeds'],
  );
  $form['use_pubsubhubbub'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use PubSubHubbub'),
    '#description' => t('Attempt to use a <a href="http://en.wikipedia.org/wiki/PubSubHubbub">PubSubHubbub</a> subscription if available.'),
    '#default_value' => $this->config['use_pubsubhubbub'],
  );
  $form['designated_hub'] = array(
    '#type' => 'textfield',
    '#title' => t('Designated hub'),
    '#description' => t('Enter the URL of a designated PubSubHubbub hub (e. g. superfeedr.com). If given, this hub will be used instead of the hub specified in the actual feed.'),
    '#default_value' => $this->config['designated_hub'],
    '#process' => array(
      'ctools_dependent_process',
    ),
    '#dependency' => array(
      'edit-use-pubsubhubbub' => array(
        1,
      ),
    ),
  );
  return $form;
}