You are here

public function FeedsHTTPFetcherAppendHeaders::sourceForm in Feeds HTTPFetcher Append Headers 7

Expose source form.

File

plugins/FeedsHTTPFetcherAppendHeaders.inc, line 133
Home of the FeedsHTTPFetcherAppendHeaders and related classes.

Class

FeedsHTTPFetcherAppendHeaders
Fetches data via HTTP and appending custom headers.

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;
}