You are here

function popups_get_popups in Popups API (Ajax Dialogs) 7

Same name and namespace in other branches
  1. 5 popups.module \popups_get_popups()
  2. 6.2 popups.module \popups_get_popups()
  3. 6 popups.module \popups_get_popups()

Build the list of popup rules from all modules that implement hook_popups.

@todo - Add some caching so we don't rebuild everytime.

2 calls to popups_get_popups()
popups_form_alter in ./popups.module
hook_form_alter
popups_init in ./popups.module
hook_init

File

./popups.module, line 152
popup.module

Code

function popups_get_popups() {
  static $popups = NULL;
  if (!isset($popups)) {
    $popups = module_invoke_all('popups');
  }
  return $popups;
}