function uc_order_order_pane in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_order/uc_order.module \uc_order_order_pane()
Implementation of hook_order_pane().
File
- uc_order/
uc_order.module, line 497
Code
function uc_order_order_pane() {
$panes[] = array(
'id' => 'ship_to',
'callback' => 'uc_order_pane_ship_to',
'title' => t('Ship to'),
'desc' => t("Manage the order's shipping address and contact information."),
'class' => 'pos-left',
'weight' => 1,
'show' => array(
'view',
'edit',
'invoice',
'customer',
),
);
$panes[] = array(
'id' => 'bill_to',
'callback' => 'uc_order_pane_bill_to',
'title' => t('Bill to'),
'desc' => t("Manage the order's billing address and contact information."),
'class' => 'pos-left',
'weight' => 2,
'show' => array(
'view',
'edit',
'invoice',
'customer',
),
);
$panes[] = array(
'id' => 'customer',
'callback' => 'uc_order_pane_customer',
'title' => t('Customer info'),
'desc' => t("Manage the information for the customer's user account."),
'class' => 'pos-left',
'weight' => 3,
'show' => array(
'view',
'edit',
),
);
$panes[] = array(
'id' => 'products',
'callback' => 'uc_order_pane_products',
'title' => t('Products'),
'desc' => t('Manage the products an order contains.'),
'class' => 'abs-left',
'weight' => 5,
'show' => array(
'view',
'edit',
'invoice',
'customer',
),
);
$panes[] = array(
'id' => 'line_items',
'callback' => 'uc_order_pane_line_items',
'title' => t('Line items'),
'desc' => t("View and modify an order's line items."),
'class' => 'abs-left',
'weight' => 6,
'show' => array(
'view',
'edit',
'invoice',
'customer',
),
);
$panes[] = array(
'id' => 'order_comments',
'callback' => 'uc_order_pane_order_comments',
'title' => t('Order comments'),
'desc' => t('View the order comments, used for communicating with customers.'),
'class' => 'abs-left',
'weight' => 8,
'show' => array(
'view',
'invoice',
'customer',
),
);
$panes[] = array(
'id' => 'admin_comments',
'callback' => 'uc_order_pane_admin_comments',
'title' => t('Admin comments'),
'desc' => t('View the admin comments, used for administrative notes and instructions.'),
'class' => 'abs-left',
'weight' => 9,
'show' => array(
'view',
'edit',
),
);
$panes[] = array(
'id' => 'update',
'callback' => 'uc_order_pane_update',
'title' => t('Update order'),
'desc' => t("Update an order's status or add comments to an order."),
'class' => 'abs-left',
'weight' => 10,
'show' => array(
'view',
),
);
return $panes;
}