function advanced_help_l in Advanced Help 7
Same name and namespace in other branches
- 5 advanced_help.module \advanced_help_l()
- 6 advanced_help.module \advanced_help_l()
Format a link but preserve popup identity.
5 calls to advanced_help_l()
- advanced_help_get_tree in ./
advanced_help.module - Build a tree of advanced help topics.
- advanced_help_index_page in ./
advanced_help.module - Page callback to view the advanced help topic index.
- advanced_help_search_view in ./
advanced_help.module - Page callback for advanced help search.
- advanced_help_topic_page in ./
advanced_help.module - Page callback to view a help topic.
- advanced_help_view_topic in ./
advanced_help.module - Load and render a help topic.
File
- ./
advanced_help.module, line 1215 - 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);
}