function popup_test_effects in Popup 7
Same name and namespace in other branches
- 7.x modules/popup_test/includes/popup_test.pages.inc \popup_test_effects()
- 6.x modules/popup_test/includes/popup_test.pages.inc \popup_test_effects()
Popup test effects page
1 string reference to 'popup_test_effects'
- popup_test_menu in modules/
popup_test/ popup_test.module - Implementation of hook_menu
File
- modules/
popup_test/ includes/ popup_test.pages.inc, line 40
Code
function popup_test_effects() {
module_load_include('inc', 'popup', 'includes/popup.api');
$rendered = '';
$effects = module_invoke_all('popup_effects');
foreach ($effects['show'] as $name => $effect) {
$rendered .= popup_element('Effect: ' . $name, 'Test popup text', array(
'effect' => $name,
'id' => 'class-effect-' . $name,
'class' => 'class-effect-' . $name,
));
}
return $rendered;
}