You are here

function merci_line_item_handler_field_edit_delete::construct in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Construct a new field handler.

Overrides views_handler_field::construct

File

merci_line_item/includes/views/handlers/merci_line_item_handler_field_edit_delete.inc, line 15
Field handler to present a button to remove a line item. It's a dummy handler, most part of the implementation is done via pre and post render hooks.

Class

merci_line_item_handler_field_edit_delete
Field handler to present a button to delete a line item.

Code

function construct() {
  parent::construct();
  $this->additional_fields['line_item_id'] = 'line_item_id';

  // Set real_field in order to make it generate a field_alias.
  $this->real_field = 'line_item_id';
}