You are here

function simple_cookie_compliance_page_alter in Simple Cookie Compliance 7

Implements hook_page_alter().

File

./simple_cookie_compliance.module, line 68
All the necessary functions for configuring and output.

Code

function simple_cookie_compliance_page_alter(&$page) {
  global $language;

  // Add the text and form.
  // This lives in a theme-function.
  $page['page_top']['simple_cookie_compliance'] = array(
    '#markup' => theme('cookie_compliance'),
    '#attached' => array(
      'js' => array(
        drupal_get_path('module', 'simple_cookie_compliance') . '/js/simple_cookie_compliance.js' => array(
          'every_page' => TRUE,
        ),
      ),
    ),
  );
}