function uc_order_mail_invoice_form in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_order/uc_order.admin.inc \uc_order_mail_invoice_form()
- 7.3 uc_order/uc_order.admin.inc \uc_order_mail_invoice_form()
1 string reference to 'uc_order_mail_invoice_form'
- uc_order_menu in uc_order/
uc_order.module - Implementation of hook_menu().
File
- uc_order/
uc_order.module, line 2048
Code
function uc_order_mail_invoice_form($order_id) {
$order = uc_order_load($order_id);
if ($order === FALSE) {
drupal_set_message(t('Order @order_id does not exist.', array(
'@order_id' => $order_id,
)));
drupal_goto('admin/store/orders');
}
$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['submit'] = array(
'#type' => 'submit',
'#value' => t('Mail invoice'),
);
return $form;
}