function clock_block_view in Clock 7
Same name and namespace in other branches
- 7.2 clock.module \clock_block_view()
Implements hook_block_view().
File
- ./
clock.module, line 155
Code
function clock_block_view($delta = '') {
if ($delta == 'clock') {
$block = array();
$block['subject'] = t('Clock');
$block['content'] = array(
'#theme' => 'clock',
'#time_zone' => _clock_get_timezone(),
'#date_format' => _clock_get_date_format(),
'#update' => variable_get('clock_update', 1),
);
return $block;
}
}