You are here

function merci_restrictions_merci_fields_info in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Implements hook_merci_fields_info().

1 call to merci_restrictions_merci_fields_info()
merci_restrictions_enable in merci_restrictions/merci_restrictions.install
Implements hook_enable().

File

merci_restrictions/merci_restrictions.module, line 279

Code

function merci_restrictions_merci_fields_info() {
  $fields = array();
  module_load_include('inc', 'merci_restrictions', 'merci_restrictions_fields');
  $field_bases = merci_restrictions_fields();
  $instances = merci_restrictions_instances();
  foreach ($field_bases as $field_name => $field) {
    $fields[$field_name] = array(
      'field' => $field,
      'instance' => $instances[$field_name],
    );
  }
  return $fields;
}