You are here

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

Override parent::sourceFormValidate().

File

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

Class

FeedsHTTPFetcherAppendHeaders
Fetches data via HTTP and appending custom headers.

Code

public function sourceFormValidate(&$values) {
  $values['source'] = trim($values['source']);
  if (!feeds_valid_url($values['source'], TRUE)) {
    $form_key = 'feeds][' . get_class($this) . '][source';
    form_set_error($form_key, t('The URL %source is invalid.', array(
      '%source' => $values['source'],
    )));
  }
}