You are here

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

Implements hook_merci_fields_info().

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

File

merci_permissions/merci_permissions.module, line 99

Code

function merci_permissions_merci_fields_info() {
  $fields = array();
  module_load_include('inc', 'merci_permissions', 'merci_permissions_fields');
  $field_bases = merci_permissions_fields();
  $instances = merci_permissions_instances();
  foreach ($field_bases as $field_name => $field) {
    $fields[$field_name] = array(
      'field' => $field,
      'instance' => $instances[$field_name],
    );
  }
  return $fields;
}