You are here

public function FeedsHTTPFetcher::sourceFormValidate in Feeds 7

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

Override parent::sourceFormValidate().

Overrides FeedsPlugin::sourceFormValidate

File

plugins/FeedsHTTPFetcher.inc, line 151

Class

FeedsHTTPFetcher
Fetches data via HTTP.

Code

public function sourceFormValidate(&$values) {
  if ($this->config['auto_detect_feeds']) {
    feeds_include_library('http_request.inc', 'http_request');
    if ($url = http_request_get_common_syndication($values['source'])) {
      $values['source'] = $url;
    }
  }
}