You are here

function shurly_api_key_form_submit in ShURLy 6

Same name and namespace in other branches
  1. 8 shurly_service/shurly_service.module \shurly_api_key_form_submit()
  2. 7 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 105
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);
}