function advanced_help_l

cis7 advanced_help.module advanced_help_l($text, $dest, $options = array())
cle7 advanced_help.module advanced_help_l($text, $dest, $options = array())
elmsmedia7 advanced_help.module advanced_help_l($text, $dest, $options = array())
icor7 advanced_help.module advanced_help_l($text, $dest, $options = array())
meedjum_blog7 advanced_help.module advanced_help_l($text, $dest, $options = array())
mooc7 advanced_help.module advanced_help_l($text, $dest, $options = array())

Format a link but preserve popup identity.

5 calls to advanced_help_l()
advanced_help_get_tree in sites/all/modules/ulmus/advanced_help/advanced_help.module
Build a tree of advanced help topics.
advanced_help_index_page in sites/all/modules/ulmus/advanced_help/advanced_help.module
Page callback to view the advanced help topic index.
advanced_help_search_view in sites/all/modules/ulmus/advanced_help/advanced_help.module
Page callback for advanced help search.
advanced_help_topic_page in sites/all/modules/ulmus/advanced_help/advanced_help.module
Page callback to view a help topic.
advanced_help_view_topic in sites/all/modules/ulmus/advanced_help/advanced_help.module
Load and render a help topic.

File

sites/all/modules/ulmus/advanced_help/advanced_help.module, line 1021
Pluggable system to provide advanced help facilities for Drupal and modules.

Code

function advanced_help_l($text, $dest, $options = array()) {
  $popup = !empty($_GET['popup']) && user_access('view advanced help popup');
  if ($popup) {
    if (empty($options['query'])) {
      $options['query'] = array();
    }

    if (is_array($options['query'])) {
      $options['query'] += array('popup' => TRUE);
    }
    else {
      $options['query'] += '&popup=TRUE';
    }
  }

  return l($text, $dest, $options);
}