Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
1c4cc262
Commit
1c4cc262
authored
Jul 14, 2004
by
Steven Wittens
Browse files
Removed the 'user' item in the menu which appeared when editing someone else's account.
parent
f63c3be3
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
1c4cc262
...
...
@@ -604,7 +604,7 @@ function user_menu() {
if
(
arg
(
0
)
==
'user'
&&
is_numeric
(
arg
(
1
)))
{
$items
[]
=
array
(
'path'
=>
'user/'
.
arg
(
1
),
'title'
=>
t
(
'user'
),
'callback'
=>
'user_page'
,
'access'
=>
TRUE
);
'type'
=>
MENU_CALLBACK
,
'callback'
=>
'user_page'
,
'access'
=>
TRUE
);
$items
[]
=
array
(
'path'
=>
'user/'
.
arg
(
1
)
.
'/view'
,
'title'
=>
t
(
'view'
),
'type'
=>
MENU_DEFAULT_LOCAL_TASK
,
'weight'
=>
-
10
);
$items
[]
=
array
(
'path'
=>
'user/'
.
arg
(
1
)
.
'/edit'
,
'title'
=>
t
(
'edit'
),
...
...
modules/user/user.module
View file @
1c4cc262
...
...
@@ -604,7 +604,7 @@ function user_menu() {
if
(
arg
(
0
)
==
'user'
&&
is_numeric
(
arg
(
1
)))
{
$items
[]
=
array
(
'path'
=>
'user/'
.
arg
(
1
),
'title'
=>
t
(
'user'
),
'callback'
=>
'user_page'
,
'access'
=>
TRUE
);
'type'
=>
MENU_CALLBACK
,
'callback'
=>
'user_page'
,
'access'
=>
TRUE
);
$items
[]
=
array
(
'path'
=>
'user/'
.
arg
(
1
)
.
'/view'
,
'title'
=>
t
(
'view'
),
'type'
=>
MENU_DEFAULT_LOCAL_TASK
,
'weight'
=>
-
10
);
$items
[]
=
array
(
'path'
=>
'user/'
.
arg
(
1
)
.
'/edit'
,
'title'
=>
t
(
'edit'
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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