public function MerciRestrictionInlineEntityFormController::tableFields in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Overrides EntityInlineEntityFormController::tableFields().
Overrides EntityInlineEntityFormController::tableFields
File
- merci_restrictions/
includes/ merci_restriction.inline_enity_form.inc, line 24 - Defines the inline entity form controller for Nodes.
Class
- MerciRestrictionInlineEntityFormController
- @file Defines the inline entity form controller for Nodes.
Code
public function tableFields($bundles) {
//$fields = parent::tableFields($bundles);
$fields = array();
$fields[MERCI_ALLOWED_ROLES] = array(
'type' => 'field',
'label' => t('Role'),
'formatter' => 'list_default',
'weight' => 4,
);
$fields[MERCI_CHECKOUT_MAX_LENGTH] = array(
'type' => 'field',
'label' => t('Checkout Max Length'),
'formatter' => 'text_default',
'weight' => 5,
);
$fields[MERCI_CHECKOUT_OFFSITE] = array(
'type' => 'field',
'label' => t('Checkout Offsite'),
'formatter' => 'boolean_yes_no',
'weight' => 6,
);
return $fields;
}