You are here

function popup_test_nesting in Popup 6.x

Same name and namespace in other branches
  1. 7 modules/popup_test/includes/popup_test.pages.inc \popup_test_nesting()
  2. 7.x modules/popup_test/includes/popup_test.pages.inc \popup_test_nesting()

Popup test nesting page

1 string reference to 'popup_test_nesting'
popup_test_menu in modules/popup_test/popup_test.module
Implementation of hook_menu

File

modules/popup_test/includes/popup_test.pages.inc, line 61

Code

function popup_test_nesting() {
  module_load_include('inc', 'popup', 'includes/popup.api');
  $rendered = '';
  foreach (array(
    'bottom-left',
    'bottom-right',
  ) as $expand) {
    $popup = 'LAST!';
    for ($i = 5; $i > 0; $i--) {
      $popup = popup_element('Level ' . $i, $popup, array(
        'effect' => $name,
        'expand' => $expand,
      ));
    }
    $rendered .= $popup;
  }
  return $rendered;
}