function merci_line_item_instances in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
1 call to merci_line_item_instances()
- merci_line_item_merci_fields_info in merci_line_item/
merci_line_item.module - Implements hook_merci_fields_info().
File
- merci_line_item/
merci_line_item_fields.inc, line 335
Code
function merci_line_item_instances() {
$field_instances = array();
// Exported field_instance: MERCI_LINE_ITEM
$field_instances[MERCI_LINE_ITEM_REFERENCE] = array(
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'merci_line_item',
'settings' => array(
'grid_field_formatter' => array(
'columns' => 4,
'grid_enable' => 0,
),
'view' => 'merci_line_item_table|default',
),
'type' => 'merci_line_item_reference_view',
'weight' => 3,
),
),
'label' => 'items',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'inline_entity_form',
'settings' => array(
'fields' => array(),
'type_settings' => array(
'allow_existing' => FALSE,
'delete_references' => 1,
'label_plural' => 'line items',
'label_singular' => 'line item',
'match_operator' => 'CONTAINS',
'override_labels' => 0,
),
),
'type' => 'inline_entity_form',
'weight' => 4,
),
);
// Exported field_instance: 'merci_line_item-merci_product-field_date_returned'
$field_instances[MERCI_RETURN_DATE] = array(
'deleted' => 0,
'description' => '',
'display' => array(
'add_form' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
),
'type' => 'date_default',
'weight' => 14,
),
'list' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 7,
),
),
'label' => 'Date Returned',
'required' => 0,
'settings' => array(
'default_value' => 'now',
'default_value2' => 'same',
'default_value_code' => '',
'default_value_code2' => '',
'merci_hours' => array(
'enabled' => 0,
'id' => '',
'max_date' => '',
'min_date' => '',
'set_merci_date_enabled' => 0,
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'date',
'settings' => array(
'increment' => 15,
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'label_position' => 'above',
'text_parts' => array(),
'year_range' => '-3:+3',
),
'type' => 'date_popup',
'weight' => 4,
),
);
// Exported field_instance: 'merci_line_item-merci_product-field_merci_resource'
$field_instances[MERCI_RESOURCE_REFERENCE] = array(
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'add_form' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'grid_field_formatter' => array(
'columns' => 1,
'grid_enable' => FALSE,
),
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 3,
),
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'grid_field_formatter' => array(
'columns' => 1,
'grid_enable' => FALSE,
),
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 9,
),
'list' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'grid_field_formatter' => array(
'columns' => 1,
'grid_enable' => 0,
),
'links' => 1,
'view_mode' => 'default',
),
'type' => 'entityreference_entity_view',
'weight' => 2,
),
),
'label' => 'Merci Resource',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 8,
),
);
// Exported field_instance: 'merci_line_item-merci_product-field_product_display'
$field_instances[MERCI_RESOURCE_DISPLAY] = array(
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'add_form' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 7,
),
'default' => array(
'label' => 'above',
'module' => 'entityreference',
'settings' => array(
'grid_field_formatter' => array(
'columns' => 1,
'grid_enable' => FALSE,
),
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 13,
),
'list' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 9,
),
),
'label' => 'Resource Display',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 11,
),
);
// Exported field_instance: 'merci_line_item-merci_product-merci_checked_out_accessories'
$field_instances[MERCI_CHECKED_OUT_ACCESSORIES] = array(
'commerce_cart_settings' => array(
'field_access' => 0,
),
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'add_form' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 9,
),
'default' => array(
'label' => 'above',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 6,
),
'list' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 10,
),
),
'label' => 'Checked Out Accessories',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 5,
),
);
// Exported field_instance: 'merci_line_item-merci_product-merci_checkout_notes'
$field_instances[MERCI_NOTES] = array(
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'add_form' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 11,
),
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 7,
),
'line_item' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'list' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 11,
),
'node_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'label' => 'Notes',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 7,
),
);
// Exported field_instance: 'merci_line_item-merci_product-merci_checkout_status'
$field_instances[MERCI_CHECKOUT_STATUS] = array(
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'add_form' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 8,
),
'default' => array(
'label' => 'above',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 5,
),
'list' => array(
'label' => 'above',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 4,
),
),
'label' => 'Checkout Status',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 3,
),
);
// Exported field_instance: 'merci_line_item-merci_product-merci_reservation_dates'
$field_instances[MERCI_CHECKOUT_DATES] = array(
'deleted' => 0,
'description' => '',
'display' => array(
'add_form' => array(
'label' => 'above',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
),
'type' => 'date_default',
'weight' => 2,
),
'default' => array(
'label' => 'above',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
),
'type' => 'date_default',
'weight' => 8,
),
'list' => array(
'label' => 'above',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
),
'type' => 'date_default',
'weight' => 3,
),
),
'label' => 'Checkout Dates',
'required' => 0,
'settings' => array(
'default_value' => 'now',
'default_value2' => 'strtotime',
'default_value_code' => '',
'default_value_code2' => '+1 hour',
'merci_hours' => array(
'enabled' => 1,
'id' => 0,
'max_date' => '',
'min_date' => '',
'set_merci_date_enabled' => 1,
),
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'date',
'settings' => array(
'increment' => 15,
'input_format' => 'm/d/Y - g:i:sa',
'input_format_custom' => '',
'label_position' => 'above',
'repeat_collapsed' => 0,
'text_parts' => array(),
'year_range' => '-3:+3',
),
'type' => 'date_popup',
'weight' => 2,
),
);
// Exported field_instance: 'merci_line_item-merci_product-merci_returned_accessories'
$field_instances[MERCI_RETURNED_ACCESSORIES] = array(
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'add_form' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 10,
),
'default' => array(
'label' => 'above',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 7,
),
'list' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 12,
),
),
'label' => 'Returned Accessories',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 6,
),
);
return $field_instances;
}