function popups_get_popups in Popups API (Ajax Dialogs) 6
Same name and namespace in other branches
- 5 popups.module \popups_get_popups()
- 6.2 popups.module \popups_get_popups()
- 7 popups.module \popups_get_popups()
Define hook_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 - Implementation of hook_form_alter().
- popups_init in ./
popups.module - Implementation of hook_init().
File
- ./
popups.module, line 174 - This module provides a hook_popups for links to be openned in an Ajax Popup Dialog.
Code
function popups_get_popups() {
static $popups = NULL;
if (!isset($popups)) {
$popups = module_invoke_all('popups');
}
return $popups;
}