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
16d3f9bc
Commit
16d3f9bc
authored
Sep 20, 2004
by
Dries Buytaert
Browse files
- Patch
#10845
by James: fixed the user/help page.
parent
228b3c7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
16d3f9bc
...
...
@@ -601,6 +601,8 @@ function user_menu($may_cache) {
'callback'
=>
'user_page'
,
'access'
=>
$user
->
uid
==
0
&&
variable_get
(
'user_register'
,
1
),
'type'
=>
MENU_LOCAL_TASK
);
$items
[]
=
array
(
'path'
=>
'user/password'
,
'title'
=>
t
(
'request new password'
),
'callback'
=>
'user_page'
,
'access'
=>
$user
->
uid
==
0
,
'type'
=>
MENU_LOCAL_TASK
);
$items
[]
=
array
(
'path'
=>
'user/help'
,
'title'
=>
t
(
'help'
),
'callback'
=>
'user_help_page'
,
'type'
=>
MENU_CALLBACK
);
$items
[]
=
array
(
'path'
=>
'admin/user'
,
'title'
=>
t
(
'users'
),
'callback'
=>
'user_admin'
,
'access'
=>
$access
);
...
...
@@ -1634,10 +1636,10 @@ function user_help($section) {
}
/**
* Menu callback; Prints user-specific information
from admin/help
.
* Menu callback; Prints user-specific
help
information.
*/
function
user_help_page
()
{
print
theme
(
'page'
,
user_help
(
'
admin
/help#user'
));
print
theme
(
'page'
,
user_help
(
'
user
/help#user'
));
}
/**
...
...
modules/user/user.module
View file @
16d3f9bc
...
...
@@ -601,6 +601,8 @@ function user_menu($may_cache) {
'callback'
=>
'user_page'
,
'access'
=>
$user
->
uid
==
0
&&
variable_get
(
'user_register'
,
1
),
'type'
=>
MENU_LOCAL_TASK
);
$items
[]
=
array
(
'path'
=>
'user/password'
,
'title'
=>
t
(
'request new password'
),
'callback'
=>
'user_page'
,
'access'
=>
$user
->
uid
==
0
,
'type'
=>
MENU_LOCAL_TASK
);
$items
[]
=
array
(
'path'
=>
'user/help'
,
'title'
=>
t
(
'help'
),
'callback'
=>
'user_help_page'
,
'type'
=>
MENU_CALLBACK
);
$items
[]
=
array
(
'path'
=>
'admin/user'
,
'title'
=>
t
(
'users'
),
'callback'
=>
'user_admin'
,
'access'
=>
$access
);
...
...
@@ -1634,10 +1636,10 @@ function user_help($section) {
}
/**
* Menu callback; Prints user-specific information
from admin/help
.
* Menu callback; Prints user-specific
help
information.
*/
function
user_help_page
()
{
print
theme
(
'page'
,
user_help
(
'
admin
/help#user'
));
print
theme
(
'page'
,
user_help
(
'
user
/help#user'
));
}
/**
...
...
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