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

CommentFileSizeAuthor
#7 Publish_tabs_visibility-899656-7.patch2.92 KBrv0

Comments

aaronbauman’s picture

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.

markusbroman’s picture

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

// Markus

aaronbauman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

rv0’s picture

Version: 6.x-1.4 » 7.x-1.x-dev
Category: support » feature
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..

aaronbauman’s picture

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

rv0’s picture

Status: Active » Needs review
StatusFileSize
new2.92 KB

here you go:
(patch created at Coworks)

rv0’s picture

Please review :)

djween’s picture

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!

aaronbauman’s picture

Status: Needs review » Fixed

ok, configurable tabs are in:
http://drupalcode.org/project/publishcontent.git/commit/53456f8d

thanks for the patch, sorry for the delay

fyi: i'm thinking about a 1.1 release probably sometime in autumn for the handful of new features + fixes in the past year.

Status: Fixed » Closed (fixed)

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