You are here

function datex_field_info_alter in Datex 7.2

Same name and namespace in other branches
  1. 7.3 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 259
Provides Jalali support for date module.

Code

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