Hide Drupal Help Messages Using jQuery

psynaptic - February 1, 2009 - 13:55
Project:Utility
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:minor
Assigned:Unassigned
Status:duplicate
Description

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.

#1

psynaptic - February 26, 2009 - 22:25

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

#2

NancyDru - September 18, 2009 - 16:39
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.

#3

litwol - September 18, 2009 - 18:33
Status:postponed (maintainer needs more info)» 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.

#4

NancyDru - September 30, 2009 - 15:09
Status:won't fix» duplicate

Changing to duplicate since a module exists.

#5

psynaptic - October 2, 2009 - 16:51

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.

 
 

Drupal is a registered trademark of Dries Buytaert.