You are here

function popup_test_nesting in Popup 7

Same name and namespace in other branches
  1. 7.x modules/popup_test/includes/popup_test.pages.inc \popup_test_nesting()
  2. 6.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(
    'top-right',
    'bottom-right',
  ) as $expand) {
    $popup = 'LAST!';
    for ($i = 5; $i > 0; $i--) {
      $popup = popup_element('Level ' . $i, $popup, array(
        'expand' => $expand,
      ));
    }
    $rendered .= $popup;
  }
  return $rendered;
}