You are here

function _datex_default_cfg in Datex 7.2

Default value of various datex config.

1 call to _datex_default_cfg()
_datex_cfg in ./datex.module
Helper function to get datex configuration.

File

./datex.module, line 77
Convert output of date_format() to Jalali in a patched drupal installation.

Code

function _datex_default_cfg($name) {
  switch ($name) {
    case 'useintl':
      return 0;
      break;
    case 'mode':
      return DATEX_NONPATCHING_MODE;
      break;
    case 'datex_jquery':
      return 0;
      break;
    case 'comment_fmt':
    case 'node_fmt':
      return variable_get('date_format_medium');
      break;
    default:
      throw new Exception('Datex uknown cfg' . $name);
      break;
  }
}