I want to remove "Text Format" from creating nodes page because i set full html for all users and want to remove text format from node pages. How can i do this?

Comments

ravis’s picture

Not sure, but disabling all other text format should do your work.

I work at Drupar.com

mayank-kamothi’s picture

Hi,monil

Remove from user permission for filter text otherwise alter node add form for filter text..

Mayank Kamothi

monil-dupe’s picture

I removed it from user permissions too but i want to totally remove this part from node creation that no one ( admin, users,visitors) can see it. How can i do it?

mayank-kamothi’s picture

Hi,
This can be done by hook_form_alter you can alter node creation form by this function for this look at this link
http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...
it will help you.

Mayank Kamothi

sriharsha’s picture

Hi,

Here is the code in form_alter that i have written to remove the text format.The $form[field_name]['und'][0]['#type'] will be having "text_format".
First will unset the existing value and assign the "textarea".

unset($form[field_name]['und'][0]['#type']);
$form[field_name]['und'][0]['#type'] = "textarea";