You are here

function _hijri_date_block in Hijri 7

Same name and namespace in other branches
  1. 8 _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 49
This module convert to Hijri date in nodes,comments and a block.

Code

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