Remove Input Formats Help In Drupal 6

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

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!

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.

Permalink

Thanks very interesting blog!

Permalink

Add new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
2 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.