Remove Input Formats Help In Drupal 6

30th August 2011 - 2 minutes read time

The input format help text is a good way of telling your users about the sort of content that they can enter into any text area. For some users, however, they can get in the way a little and even cause confusion, especially when WYISYG editors are used as much of the help text will be quite useless to most users.

The input format section is controlled by the Filter module, which is built into Drupal core, and it comes with a couple of handy hooks that allow control over this section. The filter tips section is split into two parts, the actual filter tips text itself and the more info link below the tips. If you want to remove these then just pop the following into your theme template.php file and change the function names accordingly.

function YOURTHEME_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}

function YOURTHEME_filter_tips_more_info () {
  return '';
}

You can use these theme functions to change or wrap your filter tips information in different ways. The $long parameter is used to distinguish between the quick tips underneath text areas (false) and the full filter tips page (true). Remember that if you are using a administration theme (like Rootcandy) then you will need to add your hooks into the template.php file for that theme as well otherwise this will appear to have no effect.

These are theme functions and not Drupal module hooks. The hook HOOK_filter_tips() has different functionality and is used to add or change text in the short tips and the filter tips page and has the following footprint.

HOOK_filter_tips($delta, $format, $long = FALSE)

 

Comments

Permalink

Thanks for your personal marvelous posting! I actually enjoyed reading it, you could be a great author.I will make sure to bookmark your blog and will come back in the future. I want to encourage you to continue your great writing, have a nice afternoon!

celsablau39785295461 (Mon, 05/21/2018 - 18:07)

Permalink

Got nothing to tell about myself really. Great to be a part of hashbangcode.com. I just wish Im useful in some way here.

treyavelar84504 (Tue, 05/29/2018 - 01:35)

Permalink

Thanks very interesting blog!

lilamagnuson08782354 (Thu, 05/31/2018 - 16:55)

Add new comment

The content of this field is kept private and will not be shown publicly.