function _datex_cfg in Datex 7.2
Helper function to get datex configuration.
10 calls to _datex_cfg()
- datex_admin_form in ./
datex.admin.inc - Provides administration form for datex module (menu callback).
- datex_format_date in datex_api/
datex_api.module - php->date() localalized version. With default values for Drupal.
- datex_form_alter in ./
datex.module - Implements hook_form_alter().
- datex_preprocess_comment in ./
datex.module - Implements hook_preprocess_comment().
- datex_preprocess_node in ./
datex.module - Implements hook_preprocess_node().
File
- ./
datex.module, line 105 - Convert output of date_format() to Jalali in a patched drupal installation.
Code
function _datex_cfg($name) {
$cfg = variable_get('datex_config', array());
if (!isset($cfg[$name])) {
$cfg[$name] = _datex_default_cfg($name);
variable_set('datex_config', $cfg);
}
return $cfg[$name];
}