You are here

function cookiebot_update_7002 in Cookiebot - Cookie consent, Cookie monitoring and Cookie control 7

Add optout marketing placeholder settings. Enable in settings to show placeholder text.

File

./cookiebot.install, line 35
Contains install, uninstall and update functions for Cookiebot.

Code

function cookiebot_update_7002() {
  variable_set('cookiebot_message_placeholder_cookieconsent_optout_marketing_show', FALSE);
  $cookiebot_message_placeholder_cookieconsent_optout_marketing_text_default = 'Please <a href="!cookiebot_renew" class="cookieconsent-optout-marketing__cookiebot-renew">accept marketing-cookies</a> to view this embedded content from <a href="!cookiebot_from_src_url" target="_blank" class="cookieconsent-optout-marketing__from-src-url">!cookiebot_from_src_url</a>';
  variable_set('cookiebot_message_placeholder_cookieconsent_optout_marketing', [
    'value' => $cookiebot_message_placeholder_cookieconsent_optout_marketing_text_default,
    'format' => filter_default_format(),
  ]);
}