0

where creating nodes (node/add/content-type) bellow body box there are some options related to comments, author, menu and ..

How can I hide those options?

1

You need to create a module and implement hook_form_alter.

Then, in the $form array, unset the array index(es) containing the parts you don't want your users to see and configure.

ps: I advice you do the above by permissions. So, those array indexes are unset for specific roles not all roles which would include user#1

  • Thanks, Is there anyway by editing node core module? – Zim3r Oct 25 '12 at 15:20
  • Not adviceable to hack the core. Extending hooks is the only adviceable way to alter default functionality – sisko Oct 26 '12 at 8:58
  • Can you please just tell me which file to edit ? – Zim3r Oct 27 '12 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.