How to remove publish options in drupal

I am using a workflow module. I do not want the publish options to be displayed when we try to create a page. How is this possible.

+2


a source to share


5 answers


The best solution I have found for this exact problem is to disable the host administration permission for all users participating in the publishing workflow. This will hide the publishing options for all users. What you will be aiming for is letting the system handle the post, not the users.

If you combine the Workflow module with the Revisioning, Actions, and Trigger modules, you can trigger an action that publishes your page when your content reaches its final workflow state. This process is more or less documented in the documentation for http://drupal.org/project/revisioning .



I installed this with Draft, For review, Needs work and Approved statuses for our intranet. When the publisher sets the content to Approved, the Trigger / Action modules handle the publication of the content.

+2


a source


The Publishing Settings field is available to users who have permission to administer sites . Be aware that although you can see this, if you are a member of a role that has been granted permission (or logged in as user # 1), other users who have other roles will not have access to it. Be sure to view the form as a user with the same rights as the users who will be using the form, not just with an administrator account.



If you want better control over the display in the field, you will have to use hook_form_alter

the sprugman like mentioned.

+1


a source


Assuming you like PHP, the best way is probably FAPI . You will need hook_form_alter form node for the insert state. Your best bet is to change the type of fields to hidden inputs rather than delete them, but I don't know enough about how the workflow works.

Perhaps you can also do this with css.

0


a source


... or use the module http://drupal.org/project/override_node_options ? Desccription:

The Override Node Options module allows you to set permissions for each field within the Authoring information and Publishing options field in the Node. It also allows you to set selected fieldsets as collapsed and / or resettable.

0


a source


For Drupal 7, you can use the Jammer module.

0


a source







All Articles