You are here

function amp_dfp_block_view_alter in Accelerated Mobile Pages (AMP) 7

Implements hook_block_view_alter().

File

modules/amp_dfp/amp_dfp.module, line 10
AMP integration for the DFP module.

Code

function amp_dfp_block_view_alter(&$data, $block) {
  if ($block->module == 'dfp') {
    if (amp_is_amp_request()) {
      $data['content']['dfp_wrapper']['tag']['#theme'] = 'amp_dfp_tag';
    }
  }
}