function uc_authorizenet_arb_user_update_form in Ubercart 6.2
Same name and namespace in other branches
- 5 payment/uc_authorizenet/uc_authorizenet.module \uc_authorizenet_arb_user_update_form()
1 string reference to 'uc_authorizenet_arb_user_update_form'
- uc_authorizenet_menu in payment/
uc_authorizenet/ uc_authorizenet.module - Implements hook_menu().
File
- payment/
uc_authorizenet/ uc_authorizenet.pages.inc, line 89 - Includes page callbacks for Authorize.Net's Silent POST feature and user specific recurring fee operation pages.
Code
function uc_authorizenet_arb_user_update_form($form_state, $user, $rfid) {
$form = array();
$fee = uc_recurring_fee_load('user', $rfid);
$form['uid'] = array(
'#type' => 'value',
'#value' => $user->uid,
);
$form['rfid'] = array(
'#type' => 'value',
'#value' => $rfid,
);
$form['description'] = array(
'#value' => '<div>' . t('Recurring fee order ID: @order_id', array(
'@order_id' => $fee['order_id'],
)) . '</div>',
);
$form['cc_data'] = array(
'#type' => 'fieldset',
'#title' => t('Credit card details'),
'#theme' => 'uc_payment_method_credit_form',
'#tree' => TRUE,
);
$form['cc_data'] += uc_payment_method_credit_form(array(), $order);
unset($form['cc_data']['cc_policy']);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Update'),
'#suffix' => l(t('Cancel'), 'user/' . $user->uid),
);
return $form;
}