You are here

function beautytips_drupal_help_main in BeautyTips 6.2

Same name and namespace in other branches
  1. 8 includes/drupal_help.inc \beautytips_drupal_help_main()
  2. 7.2 includes/drupal_help.inc \beautytips_drupal_help_main()

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

1 string reference to 'beautytips_drupal_help_main'
beautytips_drupal_help_menu_change in includes/drupal_help.inc
Implementation of hook_menu_alter()

File

includes/drupal_help.inc, line 40

Code

function beautytips_drupal_help_main() {

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

  //  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;
}