You are here

function popup_onload_statistics_init in Popup On Load 8

Same name and namespace in other branches
  1. 7 popup_onload_statistics/popup_onload_statistics.module \popup_onload_statistics_init()

Implements hook_init().

File

modules/popup_onload_statistics/popup_onload_statistics.module, line 38
Main popup on loadvertisement statistics functions.

Code

function popup_onload_statistics_init() {

  // Check if popup is added, and thus we need to add statistics JS.
  if (drupal_static(POPUP_ONLOAD_IS_POPUP_ADDED)) {
    popup_onload_statistics_add_js();
  }
}