function commerce_cop_delete_payment_form in Commerce Custom Offline Payments 7
payment delete form.
1 string reference to 'commerce_cop_delete_payment_form'
- commerce_cop_menu in ./
commerce_cop.module - Implements hook_menu().
File
- ./
commerce_cop.admin.inc, line 153 - Custom offline payment methods for Drupal Commerce.
Code
function commerce_cop_delete_payment_form($form, $form_state, $payment) {
$form['#payment'] = $payment;
$question = t('Are you sure you want to delete the payment %title?', array(
'%title' => $payment['title'],
));
$path = 'admin/commerce/config/custom-offline-payments';
return confirm_form($form, $question, $path);
}