function classified_block_info in Classified Ads 6.3
Same name and namespace in other branches
- 7.3 classified.module \classified_block_info()
Implements the D7 hook_block_info().
1 call to classified_block_info()
- classified_block in ./
classified.module - Implements hook_block().
File
- ./
classified.module, line 665 - A pure D6 classified ads module inspired by the ed_classified module.
Code
function classified_block_info() {
$ret = array(
'recent' => array(
'info' => t('Recent ads'),
'cache' => BLOCK_CACHE_GLOBAL,
),
'popular' => array(
'info' => t('Popular ads'),
'cache' => BLOCK_CACHE_GLOBAL,
),
'stats' => array(
'info' => t('Ad Stats'),
'cache' => BLOCK_CACHE_PER_ROLE,
),
);
foreach ($ret as $delta => $block) {
$ret[$delta]['info'] = t('Classified - @info', array(
'@info' => $ret[$delta]['info'],
));
}
return $ret;
}