function merci_line_item_fields in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
1 call to merci_line_item_fields()
- merci_line_item_merci_fields_info in merci_line_item/
merci_line_item.module - Implements hook_merci_fields_info().
1 string reference to 'merci_line_item_fields'
- 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 3
Code
function merci_line_item_fields() {
$field_bases = array();
// Exported field_base: MERCI_LINE_ITEM
$field_bases[MERCI_LINE_ITEM_REFERENCE] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_LINE_ITEM_REFERENCE,
'foreign keys' => array(
'merci_line_item' => array(
'columns' => array(
'target_id' => 'line_item_id',
),
'table' => 'merci_line_item',
),
),
'indexes' => array(
'target_id' => array(
0 => 'target_id',
),
),
'locked' => 0,
'module' => 'entityreference',
'settings' => array(
'handler' => 'base',
'handler_settings' => array(
'behaviors' => array(
'views-select-list' => array(
'status' => 0,
),
),
'sort' => array(
'type' => 'none',
),
'target_bundles' => array(
'merci_line_item' => 'merci_line_item',
),
),
'target_type' => 'merci_line_item',
),
'translatable' => 0,
'type' => 'entityreference',
);
// Exported field_base: 'field_date_returned'
$field_bases[MERCI_RETURN_DATE] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_RETURN_DATE,
'foreign keys' => array(),
'indexes' => array(),
'locked' => 0,
'module' => 'date',
'settings' => array(
'cache_count' => 4,
'cache_enabled' => 0,
'granularity' => array(
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
'month' => 'month',
'second' => 0,
'year' => 'year',
),
'timezone_db' => 'UTC',
'todate' => '',
'tz_handling' => 'site',
),
'translatable' => 0,
'type' => 'datetime',
);
// Exported field_base: 'field_merci_resource'
$field_bases[MERCI_RESOURCE_REFERENCE] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_RESOURCE_REFERENCE,
'foreign keys' => array(
'commerce_product' => array(
'columns' => array(
'target_id' => 'product_id',
),
'table' => 'commerce_product',
),
),
'indexes' => array(
'target_id' => array(
0 => 'target_id',
),
),
'locked' => 0,
'module' => 'entityreference',
'settings' => array(
'handler' => 'base',
/*
'handler_settings' => array(
'behaviors' => array(
'views-select-list' => array(
'status' => 0,
),
),
'sort' => array(
'type' => 'none',
),
'target_bundles' => array(
'merci_resource' => 'merci_resource',
),
),
*/
'target_type' => 'commerce_product',
),
'translatable' => 0,
'type' => 'entityreference',
);
// Exported field_base: 'field_product_display'
$field_bases[MERCI_RESOURCE_DISPLAY] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_RESOURCE_DISPLAY,
'foreign keys' => array(
'node' => array(
'columns' => array(
'target_id' => 'nid',
),
'table' => 'node',
),
),
'indexes' => array(
'target_id' => array(
0 => 'target_id',
),
),
'locked' => 0,
'module' => 'entityreference',
'settings' => array(
'handler' => 'base',
'handler_settings' => array(
'behaviors' => array(
'views-select-list' => array(
'status' => 0,
),
),
'sort' => array(
'type' => 'none',
),
'target_bundles' => array(
'reservable_product_display' => 'reservable_product_display',
),
),
'target_type' => 'node',
),
'translatable' => 0,
'type' => 'entityreference',
);
// Exported field_base: 'merci_checked_out_accessories'
$field_bases[MERCI_CHECKED_OUT_ACCESSORIES] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_CHECKED_OUT_ACCESSORIES,
'foreign keys' => array(
'tid' => array(
'columns' => array(
'tid' => 'tid',
),
'table' => 'taxonomy_term_data',
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'locked' => 0,
'module' => 'taxonomy',
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'reservable_product_accessories',
'parent' => 0,
),
),
'profile2_private' => FALSE,
),
'translatable' => 0,
'type' => 'taxonomy_term_reference',
);
// Exported field_base: 'merci_checkout_notes'
$field_bases[MERCI_NOTES] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_NOTES,
'field_permissions' => array(
'type' => 0,
),
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(),
'translatable' => 0,
'type' => 'text_long',
);
// Exported field_base: 'merci_checkout_status'
$field_bases[MERCI_CHECKOUT_STATUS] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_CHECKOUT_STATUS,
'field_permissions' => array(
'type' => 2,
),
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'pending' => 'Pending',
'reserved' => 'Reserved',
'checked out' => 'Checked Out',
'returned' => 'Returned',
'missing' => 'Missing',
'broken' => 'Broken',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'merci_reservation_dates'
$field_bases[MERCI_CHECKOUT_DATES] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_CHECKOUT_DATES,
'foreign keys' => array(),
'indexes' => array(),
'locked' => 0,
'module' => 'date',
'settings' => array(
'cache_count' => 4,
'cache_enabled' => 0,
'granularity' => array(
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
'month' => 'month',
'second' => 0,
'year' => 'year',
),
'profile2_private' => FALSE,
'repeat' => 0,
'timezone_db' => 'UTC',
'todate' => 'required',
'tz_handling' => 'site',
),
'translatable' => 0,
'type' => 'datetime',
);
// Exported field_base: 'merci_returned_accessories'
$field_bases[MERCI_RETURNED_ACCESSORIES] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => MERCI_RETURNED_ACCESSORIES,
'foreign keys' => array(
'tid' => array(
'columns' => array(
'tid' => 'tid',
),
'table' => 'taxonomy_term_data',
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'locked' => 0,
'module' => 'taxonomy',
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'reservable_product_accessories',
'parent' => 0,
),
),
'profile2_private' => FALSE,
),
'translatable' => 0,
'type' => 'taxonomy_term_reference',
);
return $field_bases;
}