You are here

function adsense_theme in Google AdSense integration 8

Same name and namespace in other branches
  1. 6 adsense.module \adsense_theme()
  2. 7 adsense.module \adsense_theme()

Implements hook_theme().

File

./adsense.module, line 72
Displays Google AdSense ads on Drupal pages.

Code

function adsense_theme() {
  return [
    'adsense_ad' => [
      'variables' => [
        'content' => '',
        'width' => '',
        'height' => '',
        'format' => '',
        'classes' => [],
      ],
    ],
    'adsense_cse_branding' => [
      'variables' => [
        'class' => '',
        'bg_color' => '',
        'color' => '',
        'results_path' => '',
        'client' => '',
        'slot' => '',
        'forid' => '',
        'encoding' => '',
        'qsize' => '',
        'search' => '',
        'custom_search' => '',
      ],
    ],
    'adsense_cse_results' => [
      'variables' => [
        'width' => '',
        'country' => '',
        'script' => '',
      ],
    ],
    'adsense_cse_watermark' => [
      'variables' => [
        'language' => '',
        'results_path' => '',
        'client' => '',
        'slot' => '',
        'forid' => '',
        'encoding' => '',
        'qsize' => '',
        'search' => '',
      ],
    ],
    'adsense_cse_v2_results' => [
      'variables' => [
        'client' => '',
        'slot' => '',
      ],
    ],
    'adsense_cse_v2_searchbox' => [
      'variables' => [
        'client' => '',
        'slot' => '',
      ],
    ],
    'adsense_managed_async' => [
      'variables' => [
        'format' => '',
        'width' => '',
        'height' => '',
        'client' => '',
        'slot' => '',
        'defer' => FALSE,
      ],
    ],
    'adsense_managed_page_level' => [
      'variables' => [
        'client' => '',
        'defer' => FALSE,
      ],
    ],
    'adsense_managed_responsive' => [
      'variables' => [
        'format' => '',
        'client' => '',
        'slot' => '',
        'shape' => '',
        'defer' => FALSE,
      ],
    ],
    'adsense_managed_fluid' => [
      'variables' => [
        'format' => '',
        'client' => '',
        'slot' => '',
        'layout_key' => '',
        'style' => '',
        'defer' => FALSE,
      ],
    ],
    'adsense_managed_sync' => [
      'variables' => [
        'format' => '',
        'width' => '',
        'height' => '',
        'client' => '',
        'slot' => '',
        'secret' => '',
        'defer' => FALSE,
      ],
    ],
  ];
}