function theme_beautytips_advanced_help_topic in BeautyTips 7.2
Same name and namespace in other branches
- 8 includes/drupal_help.inc \theme_beautytips_advanced_help_topic()
- 6.2 includes/drupal_help.inc \theme_beautytips_advanced_help_topic()
- 6 beautytips.module \theme_beautytips_advanced_help_topic()
Display a help icon with a link to view the topic in a popup.
Parameters
$module: The module that owns this help topic.
$topic: The identifier for the topic
$type:
- 'icon' to display the question mark icon
- 'title' to display the topic's title
- any other text to display the text. Be sure to t() it!
1 string reference to 'theme_beautytips_advanced_help_topic'
- beautytips_drupal_help_theme_change in includes/
drupal_help.inc - Implementation of hook_theme_registry_alter
File
- includes/
drupal_help.inc, line 97
Code
function theme_beautytips_advanced_help_topic(&$variables) {
// Add bt to advanced-help links
$options['bt_advanced_help'] = [
'cssSelect' => 'a.advanced-help-link',
'ajaxPath' => [
"\$(this).attr('href')",
'#content-content:not(#content-content.help-navigation)',
],
'trigger' => [
'mouseover',
'click',
],
'width' => 380,
];
beautytips_add_beautytips($options);
return theme_advanced_help_topic($variables);
}