I am using drupal 6 and i have created my own content type and few CCK fields. When user is creating a node, i don't want to show him fields like menu settings, revison information, and many others, is it possible in Drupal 6.

2 Answers 2


The access to menu settings/revision information, etc. is controlled by permissions. For example the user will require 'administer menu' permission in order to choose what menus their content will go in.

You just need to find the permissions the relate to whatever task you're trying to deny access to, and make sure the users in question don't have that permission (at http://mysite.com/admin/user/permissions).

Failing that, you should use a hook_form_alter() function in a custom module, and set the field/fieldset #access to FALSE:

function MYMODULE_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'my_form_id') {
    $form['the_field']['#access'] = FALSE;

In case you need to control access to certain CCK fields that you've created, the Field Permissions module is available for Drupal 6 and Drupal 7 and will do just that.

The Field Permissions module allows site administrators to set field-level permissions to edit, view and create fields on any entity.

  • 1
    very good solution . upvote :)
    – Yuseferi
    Sep 13, 2012 at 10:36

There are 2 modules that I found that seem to do similar tricks.

Jammer https://www.drupal.org/project/formfilter

FormFilter https://www.drupal.org/project/jammer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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