advanced_help_url

Versions
6 – 7
advanced_help_url($dest, $options = array())

Format a URL but preserve popup identity.

▾ 2 functions call advanced_help_url()

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

Code

contributions/advanced_help/advanced_help.module, line 917

<?php
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);
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.