You are here

function _datex_date_skip_field in Datex 7

Helper function to check if a date field should pass through datex or not.

1 call to _datex_date_skip_field()
datex_date_date_formatter_dates_alter in datex_date/datex_date.module
Implemetns hook_date_formatter_dates_alter().

File

datex_date/datex_date.module, line 181
Provides Jalali support for date module.

Code

function _datex_date_skip_field($context) {
  $datex = $context['instance']['settings'];
  $datex = isset($datex['datex_enabled']) ? $datex['datex_enabled'] : 'site';
  if ($datex == 'disabled' || $datex == 'site' && _datex_skip_language()) {

    // Field must be skipped;
    return TRUE;
  }

  // Field must NOT be skipped;
  return FALSE;
}