You are here

function advanced_help_url in Advanced Help 5

Same name and namespace in other branches
  1. 6 advanced_help.module \advanced_help_url()
  2. 7 advanced_help.module \advanced_help_url()

Format a URL but preserve popup identity.

2 calls to advanced_help_url()
advanced_help_search in ./advanced_help.module
Implementation of hook_search()
advanced_help_search_form in ./advanced_help.module
Form builder callback to build the search form.

File

./advanced_help.module, line 743
advanced_help.module

Code

function advanced_help_url($dest, $query = NULL, $fragment = NULL, $absolute = FALSE) {
  $popup = !empty($_GET['popup']) && user_access('view advanced help popup');
  if ($popup) {
    if (empty($query)) {
      $query = 'popup=TRUE';
    }
    else {
      $query .= '&popup=TRUE';
    }
  }
  return url($dest, $query, $fragment, $absolute);
}