function _oauth_common_admin_settings_validate in OAuth 1.0 6.3
Same name and namespace in other branches
- 7.4 oauth_common.admin.inc \_oauth_common_admin_settings_validate()
- 7.3 oauth_common.admin.inc \_oauth_common_admin_settings_validate()
1 string reference to '_oauth_common_admin_settings_validate'
File
- ./
oauth_common.admin.inc, line 24
Code
function _oauth_common_admin_settings_validate($form, $form_state) {
$values = $form_state['values'];
$lifetime = intval($values['oauth_common_request_token_lifetime'], 10);
if (!$lifetime) {
form_set_error('oauth_common_request_token_lifetime', t('The request token lifetime must be a non-zero integer value.'));
}
}