Skip to content
Snippets Groups Projects
Commit e5b08051 authored by Jon Kamke's avatar Jon Kamke Committed by Joseph Olstad
Browse files

Issue #1731332 by kamkejj: Views Lightbox trigger and exposed filter

parent d5b5c100
No related branches found
No related tags found
No related merge requests found
...@@ -124,8 +124,20 @@ class lightbox2_handler_field_lightbox2 extends views_handler_field { ...@@ -124,8 +124,20 @@ class lightbox2_handler_field_lightbox2 extends views_handler_field {
// We don't actually use the link, but we need it there for lightbox to function. // We don't actually use the link, but we need it there for lightbox to function.
if (empty($link)) { if (empty($link)) {
// Get the path name. // Get the path name.
$path = isset($_GET['q']) ? $_GET['q'] : '<front>'; $url = isset($_GET['q']) ? $_GET : '<front>';
$link = url($path, array('absolute' => TRUE)); $path = '';
$params = array();
//Get the path and any parameters from the URL
foreach ($url as $key => $value) {
if ($key === 'q') {
$path = $value;
} else {
$params[$key] = $value;
}
}
$link = url($path, array('absolute' => TRUE, 'query' => $params));
} }
// Get the token information and generate the value for the popup and the // Get the token information and generate the value for the popup and the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment