function ad_block_info in Advertisement 7
Implementation of hook_block_info().
File
- ./
ad.module, line 1395
Code
function ad_block_info() {
$blocks = array();
$groups = ad_groups_list();
foreach ($groups as $tid => $name) {
$blocks[$tid] = array(
'info' => t('ad group: @name', array(
'@name' => $name,
)),
'cache' => DRUPAL_CACHE_PER_PAGE,
);
}
return $blocks;
}