Note: This post is over two years old and so the information contained here might be out of date. If you do spot something please leave a comment and we will endeavour to correct.
30th August 2011 - 3 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.
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!
Submitted by celsablau39785295461 on Mon, 05/21/2018 - 18:07
Whilst working on a module I found that I needed to do something that was difficult to find information for. I think part of that is because the solution is simpler than I was thinking, but it did cause me to get lost in source code and internet issues for a while.
Last week I visited the city of Prague to attend the European DrupalCon 2022. The event was held between September 20th and 23rd, and was attended by over 1,200 people.
Creating a Drupal site can be a complex process. Some people put together Drupal sites using a collection of different modules whilst others use Drupal as a framework and build the site using code.
Comments
A quicker way would be to use the nifty http://drupal.org/project/better_formats module.
Submitted by budda on Thu, 11/03/2011 - 23:22
PermalinkThanks 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!
Submitted by celsablau39785295461 on Mon, 05/21/2018 - 18:07
PermalinkGot nothing to tell about myself really. Great to be a part of hashbangcode.com. I just wish Im useful in some way here.
Submitted by treyavelar84504 on Tue, 05/29/2018 - 01:35
PermalinkThanks very interesting blog!
Submitted by lilamagnuson08782354 on Thu, 05/31/2018 - 16:55
PermalinkAdd new comment