You are here

function commerce_cardonfile_delete_form in Commerce Card on File 7

Same name and namespace in other branches
  1. 7.2 includes/commerce_cardonfile.pages.inc \commerce_cardonfile_delete_form()

Builds the form for deleting cardonfile data.

Parameters

$card_data: The data array representing a card on file.

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 160
User page callbacks and forms for Commerce Card on File.

Code

function commerce_cardonfile_delete_form($form, &$form_state, $card_data) {
  $form['card_data'] = array(
    '#type' => 'value',
    '#value' => $card_data,
  );
  return confirm_form($form, t('Are you sure you want to delete this card data?'), 'user/' . $card_data['uid'] . '/stored-payment-methods', theme('card_data_overview', array(
    'card_data' => $card_data,
  )), t('Delete'));
}