uc_order_mail_invoice_form
Drupal 7 uc_order_mail_invoice_form($form, &$form_state, $order)
Sets recipients of an invoice, then mails it.
See also
uc_order_mail_invoice_form_validate()
uc_order_mail_invoice_form_submit()
Related topics
1 string reference to 'uc_order_mail_invoice_form'
File
- sites/
all/ modules/ ubercart/ uc_order/ uc_order.admin.inc, line 1282 - Order administration menu items.
Code
function uc_order_mail_invoice_form($form, &$form_state, $order) {
$form['order_id'] = array(
'#type' => 'hidden',
'#value' => $order->order_id,
);
$form['email'] = array(
'#type' => 'textfield',
'#title' => t('Recipient e-mail address'),
'#default_value' => $order->primary_email,
);
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Mail invoice'),
);
return $form;
}

