You are here

function _hijri_date_block in Hijri 8

Same name and namespace in other branches
  1. 7 hijri.module \_hijri_date_block()

The callback of Hijri date block to display the type of date selected.

1 call to _hijri_date_block()
hijri_block_view in ./_hijri.module
Implements hook_block_view().

File

./_hijri.module, line 34

Code

function _hijri_date_block() {
  $correction = variable_get('hijri_correction_value', 0);
  $hijri_value = variable_get('hijri_display_block');
  $format = hijri_format_date(time(), $hijri_value, NULL, $correction);
  $content = theme('hijri_date', array(
    'data' => $format,
  ));
  return $content;
}