You are here

function popup_onload_get_popups_all in Popup On Load 7

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

A stub to fetch all popup_onload entities.

1 call to popup_onload_get_popups_all()
popup_onload_sort_method_random in ./popup_onload.module
Callback of the popup sorting method.

File

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

Code

function popup_onload_get_popups_all() {
  $conditions = [
    'active_popup' => 1,
  ];
  $popups = entity_load('popup_onload', FALSE, $conditions);
  return $popups;
}