You are here

function eu_cookie_compliance_theme in EU Cookie Compliance (GDPR Compliance) 6

Same name and namespace in other branches
  1. 8 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 84
This module intends to deal with the EU Directive on Privacy and Electronic Communications that comes into effect in the UK on 26th May 2012.

Code

function eu_cookie_compliance_theme() {
  $path = drupal_get_path('module', 'eu_cookie_compliance') . '/theme';
  return array(
    'eu_cookie_compliance_popup_info' => array(
      'template' => 'eu-cookie-compliance-popup-info',
      'arguments' => array(
        'message' => NULL,
        'agree_button' => NULL,
        'disagree_button' => NULL,
      ),
      'path' => $path,
    ),
    'eu_cookie_compliance_popup_agreed' => array(
      'template' => 'eu-cookie-compliance-popup-agreed',
      'arguments' => array(
        'message' => NULL,
        'hide_button' => NULL,
        'find_more_button' => NULL,
      ),
      'path' => $path,
    ),
  );
}