Hi
I want to hide "Input format" link when adding/editing new content but it should support default input format .
I have tried so much and i am new in Drupal customization , Please guide me how to configure drupal for it.
Thanks in advance
Braham

Comments

alexis’s picture

Do you want to hide it from all non admin users or also from admin users? If I remember correctly you can define which roles can use which filters (the options shown in the input format fieldset) from Drupal's /admin/settings/filters.

You can also use a theme function or hook_form_alter for your form (review the Quickstart Guide for Form API) and remove the input formats fieldset according to the conditions you want. I think the element is $form['filter'] or something like that, print_r($form) to be sure.

Regards!

Alexis Bellido
Ventanazul: web development and Internet business consulting shouldn't be boring

Road Runner@drupal.org’s picture

I was looking for this too and found this module formfilter which once enable and you have admin permission to use will display all forms with options on every field to hide them.

Go try it you won't see that IMO unhelpful and confusing Input format again.

East to set up and quick to use.

aangel’s picture

But doesn't work on comment forms.

fumbling’s picture

Looking for the same solution on comment forms, did you have any success?