Project:Publish Content
Version:7.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Hi!
Is there a way to remove the publish tab so that a user can only publish a node at the checkbox? I need to do this because i have fields that are required for the user to fill and the publish tab overrides the required fields.

Thanks!
// Markus

Comments

#1

you'll need to use a hook_menu_alter() to override the publish/unpublish callback and make it a MENU_CALLBACK instead of a MENU_LOCAL_TASK. However, since the tab is the primary purpose of this module, this cannot be supported as a feature request.

#2

Thanks for your reply! I found another way to do this but thanks anyway!

// Markus

#3

Status:active» fixed

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#5

Version:6.x-1.4» 7.x-1.x-dev
Category:support request» feature request
Status:closed (fixed)» active

"However, since the tab is the primary purpose of this module, this cannot be supported as a feature request."

From my viewpoint, the primary purpose is enabling granular publishing/unpublishing permissions.
The tabs are a "nice to have" extra. Ideally it should be possible to disable them with a simple admin setting.

It makes no sense to force people to use an unneeded feature of the module if they don't use it. From a user standpoint they shouldn't be required to write custom code or use contrib modules to remove the tabs, if all it could take is a simple setting within this module.

If, however, the functionality of the tabs are the primary purpose, then the granular permissions part needs to be split into another module.
And this module should change it's name to "Publish Content Tab" or something more descriptive.

just my 2 cents..

#6

point taken, rv0.
If someone wants to write a patch, i'll be happy to include it.

#7

Status:active» needs review

here you go:
(patch created at Coworks)

AttachmentSize
Publish_tabs_visibility-899656-7.patch 2.92 KB

#8

Please review :)

#9

Is this module drastically different or better than:
http://drupal.org/project/override_node_options
?

Or is the real difference displaying publish option via checkbox in the content create form vs in a separate tab?

I am trying to make a decision on which module to use but they appear the same. Can anyone clarify?

Thanks!