Closed (won't fix)
Project:
Actions
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2006 at 14:35 UTC
Updated:
3 Feb 2013 at 19:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
pearcec commentedI agree I would also like this. I am using workflow that allow people to submit a piece of content they will never edit. So one of the actions is to change the owner. But when that happens the user gets access denied, which will confuse people.
In the mean time I found this. I am going to attempt to patch actions.inc and submit a patch for review.
http://drupal.org/node/88643
Comment #2
pearcec commentedI am submitting a patch that lets you redirect users as an action. I don't see any reason this shouldn't be core to the actions module. It works perfect if you want someone to submit content, but don't want them to be able to edit it. (It should work for any reason you need to redirect it.)
Currently I have a state change send out an email to a different user, assign the node to the user who gets the email, redirect them to a different page and post an alert message to verify receipt of the post. Works perfectly.
I took this code from the snippet I posted earlier, and cleaned it up a bit. It didn't need the help section. It just created another action. I made the form look more like there rest of the site when using redirects (ie. frontpage or redirect path settings)
I am not certain what the batchable means or if it should be set to true. Most of them are true. The snippet I grabbed set it to false. *shrug* maybe some one knows better about this. I am assuming this isn't batchable.
Comment #3
xamox commentedawesome, thx!
Comment #4
mgiffordThe patch seemed to work fine in my testing of it. I do like the additional functionality that you've built in. Does seem similar to the functionality provided by http://drupal.org/project/fieldactions though.
Comment #5
pearcec commentedmgifford,
I am not certain I agree with this statement:
fieldactions seems to use existing action functionality the only difference is that it uses field information when performing the action. I think it is appropriate to have the action page redirect be core to the actions module. I suppose there should be a better way of managing and adding generate actions.
Comment #6
pomliane commentedThis version of Actions is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.