function merci_commerce_form_commerce_order_ui_order_form_alter in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
File
- merci_commerce/
merci_commerce.module, line 58
Code
function merci_commerce_form_commerce_order_ui_order_form_alter(&$form, &$form_state, $form_id) {
$form['commerce_customer_billing']['#access'] = FALSE;
$form['commerce_customer_homeroom']['#access'] = FALSE;
$form['commerce_customer_organization']['#access'] = FALSE;
$form['customer_profile_type_ui']['#access'] = FALSE;
if (empty($form_state['line_item_add'])) {
$form['commerce_line_items']['und']['actions']['line_item_type'] = array(
'#type' => 'value',
'#value' => MERCI_FEE,
);
}
$form[MERCI_CHECKOUT_REFERENCE]['#access'] = FALSE;
$checkout_field = field_view_field($form['#entity_type'], $form['#entity'], MERCI_CHECKOUT_REFERENCE, 'default');
$form['checkout'] = array(
'#type' => 'fieldset',
'#title' => 'Checkout',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'data' => array(
'#markup' => drupal_render($checkout_field),
),
);
}