function simple_adsense_block_info in Simple AdSense 7
Implements hook_block_info().
File
- ./
simple_adsense.module, line 49 - Module file for Simple AdSense.
Code
function simple_adsense_block_info() {
$blocks = array();
$client = variable_get("simple_adsense_client", NULL);
$slots = variable_get("simple_adsense_slots", NULL);
if (isset($client) && isset($slots)) {
foreach ($slots as $key => $value) {
$blocks["simple_adsense_slot" . $key] = array(
'info' => t('Simple Adsense (@val)', array(
"@val" => $value,
)),
'cache' => DRUPAL_NO_CACHE,
);
}
}
return $blocks;
}