You are here

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

Implements hook_field_info_alter().

Extends instance settings of date fields with work calendar defaults.

File

merci_hours/merci_hours.module, line 188

Code

function merci_hours_field_info_alter(&$info) {
  $settings = array(
    'merci_hours' => array(
      'set_merci_date_enabled' => FALSE,
      'enabled' => FALSE,
      'id' => NULL,
      'min_date' => NULL,
      'max_date' => NULL,
    ),
  );
  $fields = array(
    'datetime',
  );
  foreach ($fields as $field) {
    $info[$field]['instance_settings'] += $settings;
  }
}