You are here

function uc_recurring_admin_charge_form in Ubercart 5

1 string reference to 'uc_recurring_admin_charge_form'
uc_recurring_menu in payment/uc_recurring/uc_recurring.module
Implementation of hook_menu().

File

payment/uc_recurring/uc_recurring.module, line 719
Allows you to add a recurring fee to a product/SKU to handle subscription type services.

Code

function uc_recurring_admin_charge_form() {
  $fee = uc_recurring_fee_load('user', arg(4));
  $form['message'] = array(
    '#value' => '<div>' . t('Are you sure you want to charge the customer !amount at this time?', array(
      '!amount' => uc_currency_format($fee['fee_amount']),
    )) . '</div>',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Charge'),
    '#suffix' => l(t('Cancel'), uc_referer_uri()),
  );
  return $form;
}