You are here

public function MerciLineItemInlineEntityFormController::removeForm in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Overrides EntityInlineEntityFormController::removeForm().

Overrides EntityInlineEntityFormController::removeForm

File

merci_line_item_ief/includes/merci_line_item.inline_entity_form.inc, line 217
Defines the inline entity form controller for Commerce Line Items.

Class

MerciLineItemInlineEntityFormController
@file Defines the inline entity form controller for Commerce Line Items.

Code

public function removeForm($remove_form, &$form_state) {

  // EntityInlineEntityFormController::removeForm uses the entity label
  // in the confirmation message, but line items don't have any.
  $remove_form['message'] = array(
    '#markup' => '<div>' . t('Are you sure you want to remove this line item?') . '</div>',
  );
  return $remove_form;
}