By monil-dupe on
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?
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
Not sure, but disabling all
Not sure, but disabling all other text format should do your work.
I work at Drupar.com
Hi,monil Remove from user
Hi,monil
Remove from user permission for filter text otherwise alter node add form for filter text..
Mayank Kamothi
I removed it from user
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?
Hi, This can be done by
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
Hi, Using form alter
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";