function amp_block_info in Accelerated Mobile Pages (AMP) 7
Implements hook_block_info().
File
- ./
amp.module, line 758
Code
function amp_block_info() {
$blocks = array();
$block_ids = array(
1,
2,
3,
4,
);
$amp_adsense_installed = module_exists('amp_adsense');
$amp_dfp_installed = module_exists('amp_dfp');
foreach ($block_ids as $block_id) {
if (!$amp_adsense_installed) {
$blocks['amp_google_adsense_' . $block_id] = array(
'info' => t('AMP Google Adsense ' . $block_id),
'cache' => DRUPAL_NO_CACHE,
);
}
if (!$amp_dfp_installed) {
$blocks['amp_google_doubleclick_' . $block_id] = array(
'info' => t('AMP Google DoubleClick for Publishers ' . $block_id),
'cache' => DRUPAL_NO_CACHE,
);
}
}
return $blocks;
}