function oauth_common_form_consumer_delete in OAuth 1.0 7.3
Same name and namespace in other branches
- 6.3 oauth_common.consumers.inc \oauth_common_form_consumer_delete()
- 7.4 oauth_common.consumers.inc \oauth_common_form_consumer_delete()
Consumer deletion form.
1 string reference to 'oauth_common_form_consumer_delete'
- oauth_common_providerui_menu in ./
oauth_common_providerui.module - Implements hook_menu().
File
- ./
oauth_common.consumers.inc, line 237
Code
function oauth_common_form_consumer_delete($form, &$form_state, $consumer) {
$form = array(
'consumer_object' => array(
'#type' => 'value',
'#value' => $consumer,
),
'confirm' => array(
'#type' => 'item',
'#markup' => t('Are you sure you want to delete application <strong>@a</strong>?', array(
'@a' => $consumer->name,
)),
),
'actions' => array(
'#type' => 'actions',
'delete' => array(
'#type' => 'submit',
'#title' => t('Delete'),
'#default_value' => t('Delete'),
),
),
);
return $form;
}