Normally you don’t want to show “Input Format” options available in node create form to your website users. You can easily hide them using CSS. We are hiding these options only from normal users and not from admin user.

Input Format
1. Create a hook_form_FormID_alter callback function to add the ID to DIV that containing the Input Format options. Suppose our module name is “story” and we want to hide Input Format options from “Create Story” form. So, our callback function name should be story_form_story_node_form_alter(). Where “story_node_form” is Form ID of create story form.
function story_form_story_node_form_alter(&$form, &$form_state) { global $user; if ($user->uid != 1) { $form['format']['#attributes'] = array('id' => 'fieldset-input-format'); } }
2. We added the ID “fieldset-input-format” to DIV containing Input Format options. Now, we need to hide it using CSS.
#fieldset-input-format { display:none; }
#1 by drupalhooked - January 8th, 2010 at 13:18
Hi
I dont think that its good practice hiding some element using CSS.
U better should have unset this inside form alter hook
Regards
#2 by me - July 30th, 2010 at 09:15
yeah, that didn’t work at all… but every other method i’ve tried, including “better_formats” module, didn’t work either.
#3 by Jeeba - August 13th, 2010 at 07:33
Hey dude, i foun this module that hide the forms that ou want to be hide: http://drupal.org/project/formfilter
The only bad thing about this is that ou can not filter by user, only the superadmin can see the filtered nodes