function theme_beautytips_advanced_help_topic in BeautyTips 6.2
Same name and namespace in other branches
- 8 includes/drupal_help.inc \theme_beautytips_advanced_help_topic()
- 6 beautytips.module \theme_beautytips_advanced_help_topic()
- 7.2 includes/drupal_help.inc \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 101
Code
function theme_beautytips_advanced_help_topic($module, $topic, $type = 'icon') {
// Add bt to advanced-help links
$options['bt_advanced_help'] = array(
'cssSelect' => 'a.advanced-help-link',
'ajaxPath' => array(
"\$(this).attr('href')",
'#content-content',
),
'trigger' => array(
0 => 'mouseover',
1 => 'click',
),
'width' => 380,
);
beautytips_add_beautytips($options);
return theme_advanced_help_topic($module, $topic, $type);
}