function akamai_block in Akamai 6
Same name and namespace in other branches
- 6.2 akamai.module \akamai_block()
Implementation of hook_block().
File
- ./
akamai.module, line 95 - akamai.module Integration with the Akamai CDN Cache Control Web Service.
Code
function akamai_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$blocks[0] = array(
'info' => t('Akamai Cache Control'),
'region' => 'footer',
'weight' => 0,
'cache' => BLOCK_NO_CACHE,
);
return $blocks;
}
else {
if ($op == 'view') {
$cache_control_form = drupal_get_form('akamai_page_cache_control_form');
$block = array(
'subject' => t('Akamai Cache Control'),
'content' => $content = theme('akamai_page_cache_control_block', $cache_control_form),
);
return $block;
}
}
}