You are here

function datex_field_info_alter in Datex 7.3

Same name and namespace in other branches
  1. 7.2 datex_date.inc \datex_field_info_alter()

Implements hook_field_info_alter().

Add an extra option to control datex for each field instance.

File

./datex_date.inc, line 340
Provides support for date module.

Code

function datex_field_info_alter(&$info) {
  foreach ([
    'datetime',
    'date',
    'datestamp',
  ] as $type) {
    if (isset($info[$type]['instance_settings'])) {
      $info[$type]['instance_settings']['datex_schema'] = 'default';
    }
  }
}