You are here

function popup_onload_check_display_conditions in Popup On Load 7

Same name and namespace in other branches
  1. 8 popup_onload.module \popup_onload_check_display_conditions()

Determine whether the popup is allowed to display.

Parameters

object $popup_onload: Fully populated popup_onload entity object.

Return value

bool If at least one hook returns FALSE, the popup is denied.

1 call to popup_onload_check_display_conditions()
popup_onload_init in ./popup_onload.module
Implements hook_init().

File

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

Code

function popup_onload_check_display_conditions($popup_onload) {
  $conditions = module_invoke_all('popup_onload_check_display_conditions', $popup_onload);
  return !in_array(FALSE, $conditions);
}