You are here

function popup_test_activation in Popup 7

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

Popup test activation page

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

File

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

Code

function popup_test_activation() {
  module_load_include('inc', 'popup', 'includes/popup.api');
  $rendered = popup_element('Hover', 'This is a popup that activates on hover', array(
    'activate' => 'hover',
  )) . popup_element('Click', 'This is a popup that must be clicked to activate', array(
    'activate' => 'click',
  )) . popup_element('Click and Close', 'This is a popup that must be clicked to activate, and can be closed with a button', array(
    'activate' => 'click',
    'close' => TRUE,
  ));
  return $rendered;
}