function commerce_cardonfile_delete_form in Commerce Card on File 7.2
Same name and namespace in other branches
- 7 includes/commerce_cardonfile.pages.inc \commerce_cardonfile_delete_form()
Builds the form for deleting cardonfile data.
1 string reference to 'commerce_cardonfile_delete_form'
- commerce_cardonfile_menu in ./
commerce_cardonfile.module - Implements hook_menu().
File
- includes/
commerce_cardonfile.pages.inc, line 222 - User page callbacks and forms for Commerce Card on File.
Code
function commerce_cardonfile_delete_form($form, &$form_state, $card) {
$entity_view = entity_view('commerce_cardonfile', array(
$card,
), 'customer', NULL, TRUE);
$rendered_card = drupal_render($entity_view);
return confirm_form($form, t('Are you sure you want to delete this card?'), 'user/' . $card->uid . '/cards', $rendered_card, t('Delete'));
}