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 |
Jump to:
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
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
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
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
Changing to duplicate since a module exists.
#5
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.