You are here

function theme_beautytips_more_help_link in BeautyTips 6

Returns code that emits the 'more help'-link. Overrides theme_more_help_link

1 string reference to 'theme_beautytips_more_help_link'
beautytips_theme_registry_alter in ./beautytips.module
Implementation of hook_theme_registry_alter

File

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

Code

function theme_beautytips_more_help_link($url) {
  $options = array();
  $options['bt_drupal_help'] = array(
    'area' => '.more-help-link a',
    'ajaxPath' => array(
      0 => "\$(this).attr('href')",
      1 => '.clear-block p',
    ),
    'trigger' => array(
      0 => 'mouseover',
      1 => 'click',
    ),
    'width' => 350,
  );
  beautytips_add_beautytips($options);
  return '<div class="more-help-link">' . t('[<a href="@link">more help...</a>]', array(
    '@link' => check_url($url),
  )) . '</div>';
}