function _datex_factory in Datex 7.2
Factory of datex object.
2 calls to _datex_factory()
- datex_preprocess_comment in ./
datex.module - Implements hook_preprocess_comment().
- datex_preprocess_node in ./
datex.module - Implements hook_preprocess_node().
File
- ./
datex.module, line 63 - Convert output of date_format() to Jalali in a patched drupal installation.
Code
function _datex_factory($datetime = NULL, $format = NULL, $mode = NULL, $locale = NULL) {
if (!($calendar = _datex_language_calendar($locale, $mode))) {
return FALSE;
}
$tz = drupal_get_user_timezone();
$intl = _datex_cfg('useintl');
return datex_factory($calendar, $datetime, $tz, $format, $intl);
}