Old style Action "Redirect to url" (sub)module (5.x-1.x)

doc2@drupalfr.org - March 18, 2008 - 13:11
Project:Actions
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

AttachmentSize
action_redirect.zip_.txt1.79 KB

#1

jvandyk - May 19, 2008 - 02:17
Version:5.x-2.0» 5.x-1.x-dev
Status:patch (code needs review)» closed

The "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.

#2

doc2@drupalfr.org - May 19, 2008 - 10:02
Title:Action "Redirect to url" (sub)module» Old style Action "Redirect to url" (sub)module (5.x-1.x)

Confirmed. 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

 
 

Drupal is a registered trademark of Dries Buytaert.