Closed (fixed)
Project:
Node clone
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2006 at 15:09 UTC
Updated:
9 May 2014 at 01:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Egon Bianchet commentedComment #2
pwolanin commentedWell, I think this is a generally good idea, but I think that not all admins will want to force a confirm screen. For example, on the site where I'm using it, only a very few people have the permission, and I'm using it for making lots of copies of calendar events, etc.
I think to put this in place, I'd want a settings page (maybe access based on "administer nodes" permission), where the admin can choose to require a confirm from regular users and whether to require one from users with "administer nodes" permission.
Then in the callback, check these permissions before deciding whether to display the form, or execute the cloning without confirm.
Comment #3
pwolanin commentedComment #4
Egon Bianchet commentedI've implemented it as a permission
Comment #5
pwolanin commentedCombining this issue with http://drupal.org/node/80452
The attached patch covers both requests. I'd rather see the "require confirm" as a setting than a permission, since otherwise there is no way that a site admin (user #1) can use this feature.
Please give me your feedback on these changes.
Comment #6
Egon Bianchet commentedit's ok for me.
Just a thought about the publishing options: IMHO they should be placed in the content type settings pages with a form_alter
Comment #7
pwolanin commentedHmmm, I like having the setting on one page, since I think putting them on each of the node types makes it harder to set them all. Is there an official "best practice'?
Comment #8
Egon Bianchet commentedI couldn't find anything about that in the handbooks ... anyway it's not something that will bother me :-) . You could commit it like this and eventually change it if someone will come up with solid rationale.
Comment #9
pwolanin commentedpatch committed
Comment #10
pwolanin commentedComment #11
pwolanin commentedno- fixed!
Comment #12
pwolanin commented