You are here

function hijri_block_view in Hijri 7

Same name and namespace in other branches
  1. 8 _hijri.module \hijri_block_view()

Implements hook_block_view().

File

./hijri.module, line 33
This module convert to Hijri date in nodes,comments and a block.

Code

function hijri_block_view($delta = '') {

  // This example is adapted from node.module.
  $block = array();
  switch ($delta) {
    case 'hijri':
      $block['subject'] = t('Hijri Date');
      $block['content'] = _hijri_date_block();
      break;
  }
  return $block;
}