You are here

function beautytips_help_main in BeautyTips 6

Menu callback; prints a page listing a glossary of Drupal terminology. Beautytips added for the help links

1 string reference to 'beautytips_help_main'
beautytips_menu_alter in ./beautytips.module
Implementation of hook_menu_alter()

File

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

Code

function beautytips_help_main() {

  //  Add in beautytips on page - admin/help
  $options['bt_drupal_help_page'] = array(
    'area' => '.help-items li a',
    'ajaxPath' => array(
      0 => "\$(this).attr('href')",
      1 => '.clear-block p',
    ),
    'trigger' => array(
      0 => 'mouseover',
      1 => 'click',
    ),
    'width' => 350,
  );
  beautytips_add_beautytips($options);

  //  Add CSS
  $help_path = drupal_get_path('module', 'help');
  drupal_add_css($help_path . '/help.css', 'module', 'all', FALSE);
  $output = '<h2>' . t('Help topics') . '</h2><p>' . t('Help is available on the following items:') . '</p>' . help_links_as_list();
  return $output;
}