Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Cookiebot Drupal 7 template.php
function theme_preprocess_html(&$variables)
$cookiebot = array(
'#type' => 'markup',
'#markup' => '<script id="Cookiebot" src="" data-cbid="00000000-0000-0000-0000-000000000000" type="text/javascript" async></script>' . "\n"
drupal_add_html_head($cookiebot, 'cookiebot_banner');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.