Suppress input format options on node form


/ Published in: PHP
Save to your folder(s)

Suppress the input format section of a node form when you don't really want users (even admin) to change it. Particularly handy for uncluttering forms with lots of CCK fields on them.


Copy this code and paste it in your HTML
  1. $form['field_fieldname'][0]['format']['#access'] = 0;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.