function shurly_api_key_form_submit in ShURLy 7
Same name and namespace in other branches
- 8 shurly_service/shurly_service.module \shurly_api_key_form_submit()
- 6 shurly_service/shurly_service.module \shurly_api_key_form_submit()
Submit handler for shurly_api_key_form(). Regenerate a user API key.
File
- shurly_service/
shurly_service.module, line 125 - Link ShURLy functionalities to services module. @todo
Code
function shurly_api_key_form_submit($form, &$form_state) {
// we don't need to do anything with the submitted form...
// just generate a new API key
global $user;
shurly_generate_new_api_key($user->uid);
}