function getclicky_block in Clicky - Web Analytics in Real Time 6
Implementation of hook_block()
File
- ./
getclicky.module, line 319
Code
function getclicky_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$blocks['getclicky_banner'] = array(
'info' => t('Show GetClicky banner image'),
'weight' => 0,
'status' => 0,
//'region' => 'footer',
'cache' => BLOCK_CACHE_GLOBAL,
);
return $blocks;
}
else {
if ($op == 'view') {
switch ($delta) {
case "getclicky_banner":
$block = array(
'subject' => t(''),
// empty on purpose
'content' => variable_get('getclicky_banner_image_html_code_for_copying', '<a title="Clicky Web Analytics" href="http://getclicky.com/' . variable_get('getclicky_site_id_number', '') . '"><img alt="Clicky Web Analytics" src="http://static.getclicky.com/media/links/badge.gif" border="0" /></a>'),
);
break;
}
return $block;
}
}
}