This module gives Drupal the ability to easily change links into popup dialog boxes.
There are a couple of ways to use this module.
#1) Add the popup class to an existing link, either in code:
popups_add_popups();
$output .= l("Pop up entire local page.", 'popups/test/response', array('attributes' => array('class' => 'popups'))) ."
";
or on the theme level:
element(s).
'table td:nth-child(2) a' => array(
'noReload' => true, // Popup will not modify original page.
),
)
Options:
noReload: Does the popup NOT modify the original page (Default: false).
forceReturn: url to force a stop to work flow (only use in conjunction with noReload).
href: override the href in the a element, or attach an href to a non-link element.
width: override the width specified in the css.
targetSelector: override the content area jQuery selector to be swapped out.
[These last two can only be called from the hook, not the attribute]
additionalJavascript: Array of JavaScript files that must be included to correctly run the page in the popup.
additionalCss: Array of CSS files that must be included to correctly style the page in the popup.