function beautytips_drupal_help_theme_change in BeautyTips 8
Same name and namespace in other branches
- 6.2 includes/drupal_help.inc \beautytips_drupal_help_theme_change()
- 7.2 includes/drupal_help.inc \beautytips_drupal_help_theme_change()
Implementation of hook_theme_registry_alter
File
- includes/
drupal_help.inc, line 56
Code
function beautytips_drupal_help_theme_change(&$theme_registry) {
if (\Drupal::moduleHandler()
->moduleExists('help') && \Drupal::state()
->get('beautytips_drupal_help', FALSE)) {
// Override theme_more_help_link for more-help stuff
$theme_registry['more_help_link']['function'] = 'theme_beautytips_drupal_help_more_help_link';
$theme_registry['more_help_link']['file'] = drupal_get_path('module', 'beautytips') . '/includes/drupal_help.inc';
}
if (\Drupal::moduleHandler()
->moduleExists('advanced_help') && \Drupal::state()
->get('beautytips_advanced_help', FALSE)) {
// Override theme_advanced_help_topic for advanced help
$theme_registry['advanced_help_topic']['function'] = 'theme_beautytips_advanced_help_topic';
$theme_registry['advanced_help_topic']['file'] = drupal_get_path('module', 'beautytips') . '/includes/drupal_help.inc';
}
}