Revision beb914ef
Added by Andreas Kohlbecker over 6 years ago
modules/cdm_dataportal/theme/cdm_dataportal.common.theme | ||
---|---|---|
448 | 448 |
} |
449 | 449 |
|
450 | 450 |
/* ============================ special buttons ============================= */ |
451 |
/** |
|
452 |
* @todo Please document this function. |
|
453 |
* @see http://drupal.org/node/1354 |
|
454 |
*/ |
|
455 |
function theme_cdm_back_to_search_result_button() { |
|
456 |
$out = ''; |
|
457 |
|
|
458 |
$show_button = variable_get('cdm_dataportal_show_back_to_search_results'); |
|
459 |
if (isset($_SESSION['cdm']['search']) && isset($show_button) && $show_button == 1) { |
|
460 |
/* ['cdm']['last_search'] */ |
|
461 |
// $out .= '<div id="backButton">'.l(t('Back to search result'), $_SESSION |
|
462 |
// ).'</div>'; |
|
463 |
$out .= '<div id="backButton" class="clearfix">' . l(t('Back to search result'), "http://" . $_SERVER['SERVER_NAME'] . $_SESSION['cdm']['last_search']) . '</div>'; |
|
464 |
} |
|
465 |
return $out; |
|
466 |
} |
|
467 | 451 |
|
468 | 452 |
/** |
469 | 453 |
* @todo Please document this function. |
Also available in: Unified diff
fix #5943 back to search button/link moved to drupal block