You are here

function uc_recurring_admin_charge_form in UC Recurring Payments and Subscriptions 6

Same name and namespace in other branches
  1. 6.2 uc_recurring.admin.inc \uc_recurring_admin_charge_form()
  2. 7.2 uc_recurring.admin.inc \uc_recurring_admin_charge_form()
1 string reference to 'uc_recurring_admin_charge_form'
uc_recurring_menu in ./uc_recurring.module
Implementation of hook_menu().

File

./uc_recurring.admin.inc, line 107
Recurring payments administration menu items.

Code

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