Skip to content
This repository
Browse code

Migrate r4032login patch to makefile.

  • Loading branch information...
commit 13eb45485087abd2e2a7947df89754a355e40c9a 1 parent 44d243e
Adam DiCarlo authored November 18, 2010
27  docs/r4032login.536808.patch
... ...
@@ -1,27 +0,0 @@
1  
-Index: r4032login.module
2  
-===================================================================
3  
---- r4032login.module	(revision 2380)
4  
-+++ r4032login.module	(working copy)
5  
-@@ -38,9 +38,9 @@ function r4032login_access() {
6  
- function r4032login_admin_settings() {
7  
-   $form = array();
8  
-   $form['r4032login_display_denied_message'] = array(
9  
--    '#type' => 'checkbox',
10  
-+    '#type' => 'textarea',
11  
-     '#title' => t('Display access denied message on login page'),
12  
--    '#default_value' => variable_get('r4032login_display_denied_message', TRUE)
13  
-+    '#default_value' => variable_get('r4032login_display_denied_message', 'Access denied. You must login to view this page.')
14  
-   );
15  
-   $form['r4032login_user_register_message'] = array(
16  
-     '#type' => 'textfield',
17  
-@@ -75,8 +75,8 @@ function r4032login_theme() {
18  
- function r4032login_redirect() {
19  
-   global $user;
20  
-   if ($user->uid == 0) {
21  
--    if (variable_get('r4032login_display_denied_message', TRUE)) {
22  
--      drupal_set_message(t('Access denied. You must login to view this page.'), 'error');
23  
-+    if (variable_get('r4032login_display_denied_message', 'Access denied. You must login to view this page.')) {
24  
-+      drupal_set_message(variable_get('r4032login_display_denied_message', 'Access denied. You must login to view this page.'), 'error');
25  
-     }
26  
-     // using drupal_goto() with destination set causes a recursive redirect loop
27  
-     header('Location: '. url('user/login', array('query' => 'destination='. drupal_urlencode($_REQUEST['q']), 'absolute' => TRUE)), TRUE, 302);
1  volunteer_rally.make
@@ -103,6 +103,7 @@ projects[purl][version] = "1.0-beta13"
103 103
 
104 104
 projects[r4032login][subdir] = "contrib"
105 105
 projects[r4032login][version] = "1.2"
  106
+projects[r4032login][patch] = "http://drupal.org/files/issues/r4032login.patch"
106 107
 
107 108
 projects[role_delegation][subdir] = "contrib"
108 109
 projects[role_delegation][version] = "1.3"

0 notes on commit 13eb454

Please sign in to comment.
Something went wrong with that request. Please try again.