The following action_redirect.module has been:
* Made by: http://drupal.org/user/148264 on 18-03-2008
* Thanks to: http://drupal.org/node/48737 Module snippets- Actions
* and to: http://drupal.org/node/88643 Redirect to a page (drupal 4.7 but seems to work with 5.x)
Note: This is NOT a real module, just a snippet which has to be implemented this way.
Requirement: the action.module
Example of use: redirect a user to home page url (or whatever else) after he/she logged into your site.
Installing:
- Download the following action_redirect.zip_.txt file
- Deleted the _.txt extension
- Extract the zip archive and put the action_redirect module folder into your module folder.
- No need to enable it. Go to your admin/settings/actions page. Your new action should appear there.
- Go to your admin/build/trigger/ page action.module version 2.0 or 2.x) and set up the trigger you want your actions to be assigned to.
- You're done.
Reviews and updates welcome.
| Comment | File | Size | Author |
|---|---|---|---|
| action_redirect.zip_.txt | 1.79 KB | doc2@drupalfr.org |
Comments
Comment #1
jvandyk commentedThe "Redirect to URL" action is already available as a built-in advanced action in 5.x-2.0.
The attachment above is an old-style action so I am changing the version number of this issue to 5.x-1.x-dev. And marking it closed since 5.x-1.x is not being further developed.
Comment #2
doc2@drupalfr.org commentedConfirmed. Replaced old action by the new one. It's working. Thanks!
There shouldn't be any good reason to use this sub-module anymore. Changing title for precision.
Best regards,
Arsène