function _datex_block_cfg in Datex 7.3
2 calls to _datex_block_cfg()
- datex_block_configure in ./
datex.module - Implements hook_block_configure().
- datex_block_view in ./
datex.module - Implements hook_block_view().
File
- ./
datex.module, line 63 - Datex main module file, Datex adds php-intl support to drupal.
Code
function _datex_block_cfg($i) {
$b = variable_get('datex_block', []);
return [
'cal' => isset($b[$i]['cal']) ? $b[$i]['cal'] : 'persian',
'fmt' => isset($b[$i]['fmt']) ? $b[$i]['fmt'] : 'Y/m/d H:i:s',
'tz' => isset($b[$i]['tz']) ? $b[$i]['tz'] : 'user',
'text' => isset($b[$i]['text']) ? $b[$i]['text'] : '{}',
];
}