Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
e5f2c1ef
Commit
e5f2c1ef
authored
Jun 15, 2003
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Usability improvement: avoid showing two login forms on one page. Suggested by Keith.
parent
bbf78ea1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
modules/user.module
modules/user.module
+9
-0
modules/user/user.module
modules/user/user.module
+9
-0
No files found.
modules/user.module
View file @
e5f2c1ef
...
...
@@ -328,6 +328,15 @@ function user_block($op = "list", $delta = 0) {
switch
(
$delta
)
{
case
0
:
if
(
!
$user
->
uid
)
{
/*
** For usability's sake, avoid showing two login forms on one
** page.
*/
if
(
arg
(
0
)
==
"user"
&&
arg
(
1
)
!=
"view"
)
{
return
;
}
$output
=
"<div class=
\"
user-login-block
\"
>
\n
"
;
/*
...
...
modules/user/user.module
View file @
e5f2c1ef
...
...
@@ -328,6 +328,15 @@ function user_block($op = "list", $delta = 0) {
switch
(
$delta
)
{
case
0
:
if
(
!
$user
->
uid
)
{
/*
** For usability's sake, avoid showing two login forms on one
** page.
*/
if
(
arg
(
0
)
==
"user"
&&
arg
(
1
)
!=
"view"
)
{
return
;
}
$output
=
"<div class=
\"
user-login-block
\"
>
\n
"
;
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment