function advanced_help_l in Advanced Help 5
Same name and namespace in other branches
- 6 advanced_help.module \advanced_help_l()
- 7 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 726 - advanced_help.module
Code
function advanced_help_l($text, $dest, $attributes = array(), $query = NULL, $fragment = NULL, $absolute = FALSE, $html = FALSE) {
$popup = !empty($_GET['popup']) && user_access('view advanced help popup');
if ($popup) {
if (empty($query)) {
$query = 'popup=TRUE';
}
else {
$query .= '&popup=TRUE';
}
}
return l($text, $dest, $attributes, $query, $fragment, $absolute, $html);
}