function _services_keyauth_alter_browse_form_submit in Services 6.2
Same name and namespace in other branches
- 7 auth/services_keyauth/services_keyauth.inc \_services_keyauth_alter_browse_form_submit()
Submit callback for services browse form.
1 string reference to '_services_keyauth_alter_browse_form_submit'
- services_keyauth_authentication_info in auth/
services_keyauth/ services_keyauth.module - Implementation of hook_authentication_info().
File
- auth/
services_keyauth/ services_keyauth.inc, line 242 - The implementation of the key authentication scheme
Code
function _services_keyauth_alter_browse_form_submit($method, &$args) {
if ($method['key'] && variable_get('services_use_key', TRUE)) {
$args_stripped = $args;
for ($i = 1; $i <= 4; $i++) {
array_shift($args_stripped);
}
$args[2] = time();
$args[0] = services_get_hash($args[2], $args[1], $args[3], $method, $args_stripped);
}
}