You are here

function _feeds_oauth_admin_validate in Feeds OAuth 7

Validate function for `feeds_oauth_admin`.

1 string reference to '_feeds_oauth_admin_validate'
feeds_oauth_admin in ./feeds_oauth.module
Form function for `feeds_oauth_admin`.

File

./feeds_oauth.module, line 106
The module file.

Code

function _feeds_oauth_admin_validate($form, $form_state) {
  $path = rtrim($form_state['values']['feeds_oauth_library_path'], '/');
  if (!is_dir($path) || !is_file($path . '/lib/oauth/OAuthClient.php')) {
    form_set_error('feeds_oauth_library_path', t('The php-proauth library path you entered does not point to a valid location. Please enter a valid full path.'));
    return;
  }
}