You are here

function popup_onload_load in Popup On Load 7

Fetch a popup_onload object.

File

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

Code

function popup_onload_load($popup_onload_id = NULL, $reset = FALSE) {
  $popup_onload_ids = isset($popup_onload_id) ? [
    $popup_onload_id,
  ] : [];
  $popup_onload = popup_onload_load_multiple($popup_onload_ids, [], $reset);
  return $popup_onload ? reset($popup_onload) : FALSE;
}