You are here

function _oauth_common_admin_settings_validate in OAuth 1.0 7.3

Same name and namespace in other branches
  1. 6.3 oauth_common.admin.inc \_oauth_common_admin_settings_validate()
  2. 7.4 oauth_common.admin.inc \_oauth_common_admin_settings_validate()
1 string reference to '_oauth_common_admin_settings_validate'
_oauth_common_admin in ./oauth_common.admin.inc
@file Administration pages for OAuth module.

File

./oauth_common.admin.inc, line 35
Administration pages for OAuth module.

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.'));
  }
}