You are here

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

2 calls to _merci_installed_fields()
merci_create_cck_fields in ./merci.install
@todo Please document this function.
merci_uninstall in ./merci.install
Implements hook_uninstall().

File

./merci.install, line 647
merci Installer / Uninstaller

Code

function _merci_installed_fields() {

  // Create the date field for the reservation.
  return array(
    'field_merci_date' => array(
      'field_name' => 'field_merci_date',
      'type' => 'datetime',
      'entity_types' => array(
        'node',
      ),
      'module' => 'date',
      'locked' => '1',
      'settings' => array(
        'repeat' => 0,
        'todate' => 'required',
        'granularity' => array(
          'year' => 'year',
          'month' => 'month',
          'day' => 'day',
          'hour' => 'hour',
          'minute' => 'minute',
        ),
        'tz_handling' => 'site',
        'timezone_db' => 'UTC',
      ),
    ),
  );
}