You are here

function hotjar_theme_registry_alter in Hotjar 6

Implements hook_theme_registry_alter().

Borrowed from googleanalytics.

File

./hotjar.module, line 58
Drupal Module: Hotjar.

Code

function hotjar_theme_registry_alter(&$registry) {

  // Add custom preprocess function to the beginning of the stack.
  // This allows use of the drupal_add_js() function before $vars is populated.
  array_unshift($registry['page']['preprocess functions'], 'hotjar_add_js');
}