public function ServicesClientConnectionOAuthAuth::configFormValidate in Services Client 7.2
Same name and namespace in other branches
- 7 services_client_connection/modules/services_client_oauth/plugins/ServicesClientConnectionOAuthAuth.inc \ServicesClientConnectionOAuthAuth::configFormValidate()
Overrides ServicesClientConnectionPlugin::configFormValidate
File
- services_client_connection/
modules/ services_client_oauth/ plugins/ ServicesClientConnectionOAuthAuth.inc, line 68
Class
- ServicesClientConnectionOAuthAuth
- OAuth authentication support
Code
public function configFormValidate(&$form, &$form_state) {
if (!empty($form_state['values']['access_key']) && empty($form_state['values']['access_secret'])) {
form_set_error('access_secret', 'Access Secret must be provided when using Access Key');
}
if (!empty($form_state['values']['access_secret']) && empty($form_state['values']['access_key'])) {
form_set_error('access_key', 'Access Key must be provided when using Access Secret');
}
}