Closed (won't fix)
Project:
Git Browser
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2010 at 07:04 UTC
Updated:
22 Nov 2023 at 12:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
naushunaushad commentedHi
I developed a module for logout action.This module working with action and trigger. We can redirect a new URL after logout.Module is attached here.
Comment #2
vimalramaka commented; $Id$Comment #3
vimalramaka commentedComment #4
naushunaushad commentedComment #5
naushunaushad commentedUse this one
Comment #6
vimalramaka commentedLine 84: The parameters for form validation and submission functions have changed to $form, &$form_state (http://drupal.org/node/144132#process-params)
Line 24: Use an indent of 2 spaces, with no tabs
switch ($path) {
Line 25: Use an indent of 2 spaces, with no tabs
// Main module help for the logout_redirect module
Line 26: Use an indent of 2 spaces, with no tabs
case 'admin/help#logout_redirect':
Line 27: Use an indent of 2 spaces, with no tabs
return '
' . t('This module working with core modules action and trigger.
Line 34: Use an indent of 2 spaces, with no tabs
}
Line 39: use a space between the closing parenthesis and the open bracket
function logout_redirect_action_info(){
Line 40: Use an indent of 2 spaces, with no tabs
$actions['logout_redirect_action'] = array(
Line 41: Use an indent of 2 spaces, with no tabs
'description' => t('Redirect to a URL after logout'),
Line 42: Use an indent of 2 spaces, with no tabs
'type' => 'user',
Line 43: Use an indent of 2 spaces, with no tabs
'configurable' => TRUE,
Line 44: Use an indent of 2 spaces, with no tabs
'hooks' => array(
Line 45: Use an indent of 2 spaces, with no tabs
'user' => array('logout'),
Line 46: Use an indent of 2 spaces, with no tabs
)
Line 47: Use an indent of 2 spaces, with no tabs
);
Line 48: Use an indent of 2 spaces, with no tabs
return $actions;
Line 57: use a space between the closing parenthesis and the open bracket
function logout_redirect_action(&$object,$context){
Line 57: missing space after comma
function logout_redirect_action(&$object,$context){
Line 58: Use an indent of 2 spaces, with no tabs
drupal_goto($context['logout_redirect_url']);
Line 66: Use an indent of 2 spaces, with no tabs
$form['logout_redirect_url'] = array(
Line 67: Use an indent of 2 spaces, with no tabs
'#type' => 'textfield',
Line 68: Use an indent of 2 spaces, with no tabs
'#title' => t('URL'),
Line 69: Use an indent of 2 spaces, with no tabs
'#default_value' => $context['logout_redirect_url'],
Line 70: Use an indent of 2 spaces, with no tabs
'#size' => '60',
Line 71: Use an indent of 2 spaces, with no tabs
'#maxlength' => '90',
Line 72: Use an indent of 2 spaces, with no tabs
'#required' => TRUE,
Line 73: Use an indent of 2 spaces, with no tabs
'#description' => t('The URL to which the user should be redirected after logout. This can be an internal URL like node/1,login.html etc or an external URL like http://drupal.org.
Line 75: Use an indent of 2 spaces, with no tabs
);
Line 76: Use an indent of 2 spaces, with no tabs
return $form;
Line 85: Use an indent of 2 spaces, with no tabs
return array(
Line 86: Use an indent of 2 spaces, with no tabs
'logout_redirect_url' => $form_state['values']['logout_redirect_url'],
Line 87: Use an indent of 2 spaces, with no tabs
);
Comment #7
vimalramaka commentedYour current .info with line numbers is:
; $Id$Comment #8
naushunaushad commentedthanks for your information
Comment #9
naushunaushad commenteduse this one
Comment #10
naushunaushad commentedhi vimal
can you please tell me what is the need of menu hook in this module.We need to use this with help of action and trigger modules.
We can see the help from the following location
sitename/admin/help
Comment #11
vimalramaka commented// $Id$Comment #12
naushunaushad commentedComment #13
vimalramaka commentedWell, you need not specially implement hook_menu for help. You need to implement hook_menu for a place, to set up the URL for redirection. As of now, there is no place I can set the URL, through Drupal front-end.
So please implement hook_menu for the form.
Comment #14
naushunaushad commentedThanks vimal.
But this module depends on action modules.We can create an action for logout redirect.We must use action settings link for create logout redirect action.Thats the logic.So the seperate link is not necessary for this module.
thanks for your valuable informations
Comment #15
jlbretton commentedthanks naushunaushad.
Nice little module, solving what I couldn't do with other alternatives tried like Login/Logout Destination or Apache redirections rules.
It works as expected, allowing me to switch easly between https wth special port number and standart http.
Comment #16
avpadernoHello, and thank you for applying for a CVS account. I am adding the review tags, and somebody will report what needs to be changed.
As per requirements, the motivation should include a description of the module features (more than two sentences), and a comparison with the existing solutions.
Comment #17
naushunaushad commentedThank you for adding review tags
This module can be used for setting redirection page after logout.This module offer drupal standard.I am using action and trigger for redirection.There is no action available for logout.
There is a module available for Login/Logout Destinations.But this is not using action and trigger.And this need query string destination for setting redirection page.I think we can use the logout_redirect module for extending the some use page redirection functionalities.
For example suppose we want role based redirection after login we can extend this module for this purpose.
Comment #18
avpadernoThank you for your reply.
Comment #19
lorinpda commentedHi,
You module depends on the optional core module "Trigger". However, you .info file does not contain a dependency statement. Therefore, please consider adding the following line to your .info file
dependencies[] = trigger.Along the same lines, I would consider enhancing your hook_help implementation so that it provides a user links to core Actions and Triggers configuration settings dialogs.
Finally, the "coder" module reports several formatting issues. Otherwise, I tested the functionality, works as expected (nice work).
Comment #20
avpadernoI am changing status as per previous comment.
Comment #21
naushunaushad commentedThank you.
Comment #23
zzolo commentedHi. Please read all the following and the links provided as this is very important information about your CVS Application:
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:
Migrating from CVS Applications to (Git) Full Project Applications
Comment #24
naushunaushad commentedComment #25
naushunaushad commentedComment #26
avpaderno