views:

620

answers:

3

I want to hide these fieldsets in a Drupal 6 site for some content types (not for all of them), because these options are unnecessary and confusing to the end user.

How can I do this?

Thank you!

+2  A: 

If you are talking about when editing a node, this is related to permissions, so those fieldsets will only be displayed according to the user who is editing the node.

If you want to hide them, you could use hook_form_alter to alter the $form array. You have to be careful about this, so it wont be impossible for users to edit the those sections of the node.

googletorp
+1 - As long as the goal is to just hide those options from the user to prevent confusion/accidental changes, simply turning them to hidden fields via `hook_form_alter` is a quick way to do it without interfering with the normal form processing. But this will not prevent a malicious user from tampering with the post data itself, so if security restrictions apply as well, more work needs to be done.
Henrik Opel
Only a malicious user with access could do this. So it shouldn't be a problem.
googletorp
+1  A: 

Check out the Simplify Node Add module.

marcvangend
+1  A: 

NodeFormCols sounds like the module your after. As well as hiding fieldsets, you can control the order they will appear in, and whether or not they should be collapsed.

As well as that "override_node_options" module allows you to pick which checkboxes to hide within the publishing options fieldset.

Neil

related questions