You are here

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

Implements hook_variable_info().

File

./cookiebot.module, line 276
The Cookiebot main module file.

Code

function cookiebot_variable_info($options) {
  $variables['cookiebot_cbid'] = array(
    'type' => 'string',
    'title' => t('Your cookiebot Domain Group ID (CBID)', array(), $options),
    'localize' => FALSE,
  );
  $variables['cookiebot_block_cookies'] = [
    'type' => 'boolean',
    'title' => t('Automatically block all cookies', array(), $options),
  ];
  $variables['cookiebot_iab_enabled'] = [
    'type' => 'boolean',
    'title' => t('Enabling IAB framework', array(), $options),
  ];
  $variables['cookiebot_show_declaration'] = array(
    'type' => 'boolean',
    'title' => t('Show the Cookiebot cookie declaration', array(), $options),
  );
  $variables['cookiebot_show_declaration_node_id'] = array(
    'type' => 'string',
    'title' => t('Node ID', array(), $options),
    'localize' => TRUE,
  );
  $variables['cookiebot_exclude_paths'] = [
    'type' => 'text',
    'title' => t('Exclude paths', array(), $options),
    'localize' => TRUE,
  ];
  $variables['cookiebot_exclude_admin_theme'] = [
    'type' => 'boolean',
    'title' => t('Exclude admin pages', array(), $options),
    'localize' => FALSE,
  ];
  $variables['cookiebot_exclude_uid_1'] = [
    'type' => 'boolean',
    'title' => t('Don’t show the Cookiebot for UID 1.', array(), $options),
    'localize' => FALSE,
  ];
  $variables['cookiebot_message_placeholder_cookieconsent_optout_marketing_show'] = [
    'type' => 'boolean',
    'title' => t('Show placeholder message for blocked marketing elements', array(), $options),
    'localize' => FALSE,
  ];
  $variables['cookiebot_message_placeholder_cookieconsent_optout_marketing'] = [
    'type' => 'text',
    'title' => t('Placebolder message for blocked marketing elements', array(), $options),
    'element' => [
      '#type' => 'text_format',
      '#base_type' => 'textarea',
      '#cardinality' => 1,
    ],
    'localize' => TRUE,
  ];
  return $variable;
}