function _services_keyauth_security_settings_submit in Services 7
Same name and namespace in other branches
- 6.2 auth/services_keyauth/services_keyauth.inc \_services_keyauth_security_settings_submit()
1 string reference to '_services_keyauth_security_settings_submit'
- services_keyauth_authentication_info in auth/
services_keyauth/ services_keyauth.module - Implements hook_authentication_info().
File
- auth/
services_keyauth/ services_keyauth.inc, line 38 - The implementation of the key authentication scheme
Code
function _services_keyauth_security_settings_submit($form_state) {
// Store all values from "our" form as variables.
$options = _services_keyauth_security_settings();
foreach ($options['security']['options'] as $key => $field) {
$value = isset($form_state['input'][$key]) ? $form_state['input'][$key] : 0;
variable_set($key, $value);
}
}