You are here

function beautytips_theme_registry_alter in BeautyTips 6

Implementation of hook_theme_registry_alter

File

./beautytips.module, line 365
Provides API for adding beautytips to pages. Adds Beautytips settings page and provides some built in functionality.

Code

function beautytips_theme_registry_alter(&$theme_registry) {
  if (variable_get('beautytips_drupal_help', FALSE)) {
    if (module_exists('help')) {

      // Override theme_more_help_link for more-help stuff
      $theme_registry['more_help_link']['function'] = 'theme_beautytips_more_help_link';
    }
    if (module_exists('advanced_help')) {

      // Override theme_advanced_help_topic for advanced help
      $theme_registry['advanced_help_topic']['function'] = 'theme_beautytips_advanced_help_topic';
    }
  }
}