You are here

function popups_get_popups in Popups API (Ajax Dialogs) 5

Same name and namespace in other branches
  1. 6.2 popups.module \popups_get_popups()
  2. 6 popups.module \popups_get_popups()
  3. 7 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
popups_init in ./popups.module
hook_init

File

./popups.module, line 213
popups.module

Code

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