You are here

public function FeedsHTTPFetcher::sourceForm in Feeds 6

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

Expose source form.

Overrides FeedsPlugin::sourceForm

File

plugins/FeedsHTTPFetcher.inc, line 135

Class

FeedsHTTPFetcher
Fetches data via HTTP.

Code

public function sourceForm($source_config) {
  $form = array();
  $form['source'] = array(
    '#type' => 'textfield',
    '#title' => t('URL'),
    '#description' => t('Enter a feed URL.'),
    '#default_value' => isset($source_config['source']) ? $source_config['source'] : '',
    '#maxlength' => NULL,
    '#required' => TRUE,
  );
  return $form;
}