You are here

function popup_test_styles in Popup 7

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

Popup test activation page

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

File

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

Code

function popup_test_styles() {
  module_load_include('inc', 'popup', 'includes/popup.util');
  module_load_include('inc', 'popup', 'includes/popup.api');
  $styles = _popup_styles();
  $rendered = '';
  foreach ($styles as $style => $path) {
    $rendered .= popup_element($style, 'This is a test of the ' . $style . ' popup style', array(
      'style' => $style,
      'activate' => 'hover',
    ));
  }
  return $rendered;
}