function oauth_common_delete_confirm_context_submit in OAuth 1.0 7.3
Same name and namespace in other branches
- 6.3 oauth_common.admin.inc \oauth_common_delete_confirm_context_submit()
- 7.4 oauth_common.admin.inc \oauth_common_delete_confirm_context_submit()
Handle the submit button to delete a context.
File
- ./
oauth_common.admin.inc, line 562 - Administration pages for OAuth module.
Code
function oauth_common_delete_confirm_context_submit($form, &$form_state) {
$context = oauth_common_context_load($form_state['values']['context']);
if ($context->cid == $form_state['values']['cid']) {
oauth_common_context_delete($context);
$form_state['redirect'] = 'admin/config/services/oauth';
}
}