You are here

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

Implements hook_merci_fields_info().

1 call to merci_hours_merci_fields_info()
merci_hours_enable in merci_hours/merci_hours.install
Implements hook_enable().

File

merci_hours/merci_hours.module, line 323

Code

function merci_hours_merci_fields_info() {
  $fields = array();

  // Exported field_base: 'field_office_hours'
  $fields[MERCI_HOURS_FIELD] = array(
    'field' => array(
      'cardinality' => -1,
      'field_name' => MERCI_HOURS_FIELD,
      'type' => 'datetime',
      'settings' => array(
        'todate' => 'required',
        'tz_handling' => 'none',
      ),
    ),
    'instance' => array(
      'label' => 'Office hours',
      'required' => 0,
      'widget' => array(
        'module' => 'merci_hours',
        'type' => 'merci_hours',
      ),
    ),
  );
  return $fields;
}