You are here

function advanced_help_url in Advanced Help 6

Same name and namespace in other branches
  1. 5 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
Implements hook_search().
advanced_help_search_form in ./advanced_help.module
Form builder callback to build the search form.

File

./advanced_help.module, line 979
Pluggable system to provide advanced help facilities for Drupal and modules.

Code

function advanced_help_url($dest, $options = array()) {
  $popup = !empty($_GET['popup']) && user_access('view advanced help popup');
  if ($popup) {
    if (empty($options['query'])) {
      $options['query'] = array();
    }
    $options['query'] += array(
      'popup' => TRUE,
    );
  }
  return url($dest, $options);
}