You are here

function _merci_inventory_installed_fields in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2

2 calls to _merci_inventory_installed_fields()
merci_inventory_create_cck_fields in modules/merci_inventory/merci_inventory.install
merci_inventory_uninstall in modules/merci_inventory/merci_inventory.install
Implementation of hook_uninstall().

File

modules/merci_inventory/merci_inventory.install, line 98
merci inventory install / uninstall

Code

function _merci_inventory_installed_fields() {

  // Create the date field for the reservation.
  return array(
    'field_merci_inventory_item' => array(
      'field_name' => 'field_merci_inventory_item',
      'type' => 'entityreference',
      'entity_types' => array(
        'node',
      ),
      'module' => 'entityreference',
      'locked' => '1',
      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
    ),
    'field_merci_model' => array(
      'field_name' => 'field_merci_model',
      'type' => 'text',
      'entity_types' => array(
        'node',
      ),
      'module' => 'text',
    ),
    'field_merci_make' => array(
      'field_name' => 'field_merci_make',
      'type' => 'text',
      'entity_types' => array(
        'node',
      ),
      'module' => 'text',
    ),
    'field_merci_serial_number' => array(
      'field_name' => 'field_merci_serial_number',
      'type' => 'text',
      'entity_types' => array(
        'node',
      ),
      'module' => 'text',
    ),
    'field_merci_inventory_code' => array(
      'field_name' => 'field_merci_inventory_code',
      'type' => 'text',
      'entity_types' => array(
        'node',
      ),
      'module' => 'text',
    ),
    'field_merci_warranty' => array(
      'field_name' => 'field_merci_warranty',
      'type' => 'text',
      'entity_types' => array(
        'node',
      ),
      'module' => 'text',
    ),
  );
}