You are here

public function OAuthHTTPFetcher::configFormValidate in Feeds OAuth 7

Validate config.

File

./OAuthHTTPFetcher.inc, line 227
Definition of the import batch object created on the fetching stage by OAuthHTTPFetcher.

Class

OAuthHTTPFetcher
Support OAuth authentication.

Code

public function configFormValidate(&$values) {
  $values['site_id'] = trim($values['site_id']);
  if (!preg_match('/^[\\w-]*$/', $values['site_id'])) {
    form_set_error('site_id', t('Site identifier must contain alphanumerics and hyphens only.'));
  }
}