Commit e5b08051 authored by kamkejj's avatar kamkejj Committed by joseph.olstad

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

parent d5b5c100
......@@ -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.
if (empty($link)) {
// Get the path name.
$path = isset($_GET['q']) ? $_GET['q'] : '<front>';
$link = url($path, array('absolute' => TRUE));
$url = isset($_GET['q']) ? $_GET : '<front>';
$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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment