You are here

function amp_dfp_theme in Accelerated Mobile Pages (AMP) 7

Implements hook_theme().

File

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

Code

function amp_dfp_theme($existing, $type, $theme, $path) {
  $theme = array(
    'amp_dfp_tag' => array(
      'variables' => array(
        'tag' => NULL,
        'width' => NULL,
        'height' => NULL,
        'layout' => NULL,
        'amp_ad_json' => NULL,
        'sticky' => NULL,
      ),
      'template' => 'amp-dfp-tag',
    ),
  );
  return $theme;
}