You are here

function eu_cookie_compliance_theme in EU Cookie Compliance (GDPR Compliance) 8

Same name and namespace in other branches
  1. 6 eu_cookie_compliance.module \eu_cookie_compliance_theme()
  2. 7.2 eu_cookie_compliance.module \eu_cookie_compliance_theme()
  3. 7 eu_cookie_compliance.module \eu_cookie_compliance_theme()
  4. 2.0.x eu_cookie_compliance.module \eu_cookie_compliance_theme()

Implements hook_theme().

File

./eu_cookie_compliance.module, line 574
The main file for the EU Cookie Compliance module.

Code

function eu_cookie_compliance_theme($existing, $type, $theme, $path) {
  return [
    'eu_cookie_compliance_popup_info' => [
      'template' => 'eu_cookie_compliance_popup_info',
      'variables' => [
        'message' => NULL,
        'agree_button' => NULL,
        'disagree_button' => NULL,
        'more_info_button' => NULL,
        'secondary_button_label' => NULL,
        'primary_button_class' => NULL,
        'secondary_button_class' => NULL,
        'cookie_categories' => NULL,
        'save_preferences_button_label' => NULL,
        'privacy_settings_tab_label' => NULL,
        'withdraw_button_on_info_popup' => FALSE,
        'method' => 'default',
      ],
    ],
    'eu_cookie_compliance_popup_info_consent_default' => [
      'template' => 'eu_cookie_compliance_popup_info_consent_default',
      'variables' => [
        'message' => NULL,
        'agree_button' => NULL,
        'disagree_button' => NULL,
        'secondary_button_label' => NULL,
        'primary_button_class' => NULL,
        'secondary_button_class' => NULL,
      ],
    ],
    'eu_cookie_compliance_popup_agreed' => [
      'template' => 'eu_cookie_compliance_popup_agreed',
      'variables' => [
        'message' => NULL,
        'hide_button' => NULL,
        'find_more_button' => NULL,
      ],
    ],
    'eu_cookie_compliance_withdraw' => [
      'template' => 'eu_cookie_compliance_withdraw',
      'variables' => [
        'withdraw_tab_button_label' => NULL,
        'message' => NULL,
        'withdraw_action_button_label' => NULL,
      ],
    ],
  ];
}