You are here

function datex_field_formatter_info_alter in Datex 7.2

Same name and namespace in other branches
  1. 7.3 datex_date.inc \datex_field_formatter_info_alter()

Add datex configuration to date field.

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

File

./datex_date.inc, line 246
Provides Jalali support for date module.

Code

function datex_field_formatter_info_alter(&$info) {
  foreach (array(
    'date_default',
    'date_plain',
  ) as $formatter) {
    if (isset($info[$formatter])) {
      $info[$formatter]['settings']['datex_schema'] = 'default';
    }
  }
}