You are here

function popup_onload_check_time_cookie in Popup On Load 8

Same name and namespace in other branches
  1. 7 popup_onload.module \popup_onload_check_time_cookie()

Check if popup_onload cookie is set.

2 calls to popup_onload_check_time_cookie()
hook_popup_onload_check_display_conditions in ./popup_onload.api.php
Check popup display conditions.
popup_onload_popup_onload_check_display_conditions in ./popup_onload.module
Implements hook_popup_onload_check_display_conditions().

File

./popup_onload.module, line 184
Contains main popup_onload hooks and functions.

Code

function popup_onload_check_time_cookie($popup_onload) {
  $cookie_name = PopupOnLoadSettingsForm::popupOnLoadGetDefaults(POPUP_ONLOAD_VAR_COOKIE_NAME, POPUP_ONLOAD_DEFAULT_COOKIE_NAME) . '_' . $popup_onload
    ->id();
  return isset($_COOKIE[$cookie_name]);
}