It has been bugging me for some time that the help messages in Drupal can get in the way of development and general site administration. I put out a blog post about this: Hide Drupal Help Messages Using jQuery.

Instead of creating another module for this I wanted to ask if you might consider including it within Util. It seems like this is the best place for this kind of feature.

Comments

psynaptic’s picture

if (Drupal.jsEnabled) {
  $(document).ready(function() {
    $(".help").before('<a class="help-slide" href="#">View help</a>');
    $(".help").wrap('<div class="wrap"></div>');
    var height = $('.wrap').height();
    $('.wrap').hide();
    $('a.help-slide').click(function() {
      $('.wrap').css('height', height);
      $(this).next('.wrap').slideToggle('fast');
      return false;
    });
  });
}
nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

Please submit a patch and we will test it. There are several help altering modules, please make sure this doesn't duplicate one of them or fit better there.

litwol’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Wont fix for Util.

http://drupal.org/project/js_theming already solves this task as well as other modules are available that do the same.

nancydru’s picture

Status: Closed (won't fix) » Closed (duplicate)

Changing to duplicate since a module exists.

psynaptic’s picture

Could someone please explain how I can get this functionality from the js_theming module?

Did you try the JS? Just drop it into your script.js file and it will work. I can make a patch if you like it.

thinkyhead’s picture

Issue tags: +help system

I've found hiding the help block so desirable that I created a dedicated module, Hidey Help. The module provides a Show/Hide Help button for logged-in users in a similar manner to the jQuery in the first post.