function oauth_common_form_consumer_delete_submit in OAuth 1.0 6.3
Same name and namespace in other branches
- 7.4 oauth_common.consumers.inc \oauth_common_form_consumer_delete_submit()
- 7.3 oauth_common.consumers.inc \oauth_common_form_consumer_delete_submit()
Submit handler for oauth_common_form_consumer_delete.
File
- ./
oauth_common.consumers.inc, line 234
Code
function oauth_common_form_consumer_delete_submit($form, &$form_state) {
$consumer = $form_state['values']['consumer_object'];
$consumer
->delete();
drupal_set_message(t('Deleted the consumer @name', array(
'@name' => $consumer->name,
)));
drupal_goto(sprintf('user/%d/oauth/consumers', $consumer->uid));
}