You are here

function clock_block_view in Clock 7.2

Same name and namespace in other branches
  1. 7 clock.module \clock_block_view()

Implements hook_block_view().

File

./clock.module, line 137
Display clocks on your site.

Code

function clock_block_view($delta = '') {
  if ($delta == 'clock') {
    $clocks = clock_info();
    $block = array();
    $block['subject'] = t('Clock');
    $block['content'] = array(
      '#theme' => 'clocks',
      '#clocks' => $clocks,
    );
    return $block;
  }
}