function oauth2_server_client_form_submit in OAuth2 Server 7
Form API submit callback for the type form.
File
- includes/
oauth2_server.client_admin.inc, line 327 - Admin UI for clients.
Code
function oauth2_server_client_form_submit(&$form, &$form_state) {
$client = entity_ui_form_submit_build_entity($form, $form_state);
$client->client_secret = $form_state['client_secret'];
// Save and go back.
$client
->save();
$server = arg(4);
$form_state['redirect'] = 'admin/structure/oauth2-servers/manage/' . $server . '/clients';
}