Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
315
Merge Requests
315
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
d5c80264
Commit
d5c80264
authored
Dec 17, 2003
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Updated the calls to menu() to use MENU_HIDE instead of 1
parent
928c113b
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
48 additions
and
56 deletions
+48
-56
modules/aggregator.module
modules/aggregator.module
+1
-1
modules/aggregator/aggregator.module
modules/aggregator/aggregator.module
+1
-1
modules/archive.module
modules/archive.module
+1
-1
modules/archive/archive.module
modules/archive/archive.module
+1
-1
modules/blog.module
modules/blog.module
+1
-1
modules/blog/blog.module
modules/blog/blog.module
+1
-1
modules/book.module
modules/book.module
+1
-1
modules/book/book.module
modules/book/book.module
+1
-1
modules/comment.module
modules/comment.module
+2
-2
modules/comment/comment.module
modules/comment/comment.module
+2
-2
modules/drupal.module
modules/drupal.module
+1
-1
modules/drupal/drupal.module
modules/drupal/drupal.module
+1
-1
modules/forum.module
modules/forum.module
+1
-1
modules/forum/forum.module
modules/forum/forum.module
+1
-1
modules/import.module
modules/import.module
+1
-1
modules/locale.module
modules/locale.module
+2
-2
modules/locale/locale.module
modules/locale/locale.module
+2
-2
modules/node.module
modules/node.module
+2
-2
modules/node/node.module
modules/node/node.module
+2
-2
modules/poll.module
modules/poll.module
+1
-1
modules/poll/poll.module
modules/poll/poll.module
+1
-1
modules/search.module
modules/search.module
+1
-1
modules/search/search.module
modules/search/search.module
+1
-1
modules/statistics.module
modules/statistics.module
+4
-4
modules/statistics/statistics.module
modules/statistics/statistics.module
+4
-4
modules/taxonomy.module
modules/taxonomy.module
+1
-1
modules/taxonomy/taxonomy.module
modules/taxonomy/taxonomy.module
+1
-1
modules/title.module
modules/title.module
+1
-1
modules/user.module
modules/user.module
+3
-7
modules/user/user.module
modules/user/user.module
+3
-7
modules/watchdog.module
modules/watchdog.module
+1
-1
modules/watchdog/watchdog.module
modules/watchdog/watchdog.module
+1
-1
No files found.
modules/aggregator.module
View file @
d5c80264
...
...
@@ -110,7 +110,7 @@ function import_link($type) {
menu
(
"admin/node/syndication/news/help"
,
t
(
"help"
),
"import_help_page"
,
9
);
}
if
(
user_access
(
"access news feeds"
))
{
menu
(
"import"
,
t
(
"news feeds"
),
"import_page"
,
0
,
1
);
menu
(
"import"
,
t
(
"news feeds"
),
"import_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/aggregator/aggregator.module
View file @
d5c80264
...
...
@@ -110,7 +110,7 @@ function import_link($type) {
menu
(
"admin/node/syndication/news/help"
,
t
(
"help"
),
"import_help_page"
,
9
);
}
if
(
user_access
(
"access news feeds"
))
{
menu
(
"import"
,
t
(
"news feeds"
),
"import_page"
,
0
,
1
);
menu
(
"import"
,
t
(
"news feeds"
),
"import_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/archive.module
View file @
d5c80264
...
...
@@ -190,7 +190,7 @@ function archive_link($type) {
if
(
$type
==
"system"
)
{
if
(
user_access
(
"access content"
))
{
menu
(
"archive"
,
t
(
"archives"
),
"archive_page"
,
0
,
1
);
menu
(
"archive"
,
t
(
"archives"
),
"archive_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/archive/archive.module
View file @
d5c80264
...
...
@@ -190,7 +190,7 @@ function archive_link($type) {
if
(
$type
==
"system"
)
{
if
(
user_access
(
"access content"
))
{
menu
(
"archive"
,
t
(
"archives"
),
"archive_page"
,
0
,
1
);
menu
(
"archive"
,
t
(
"archives"
),
"archive_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/blog.module
View file @
d5c80264
...
...
@@ -253,7 +253,7 @@ function blog_link($type, $node = 0, $main) {
menu
(
"blog/"
.
$user
->
uid
,
t
(
"my blog"
),
"blog_page"
,
1
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"blog"
,
t
(
"blogs"
),
"blog_page"
,
0
,
1
);
menu
(
"blog"
,
t
(
"blogs"
),
"blog_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/blog/blog.module
View file @
d5c80264
...
...
@@ -253,7 +253,7 @@ function blog_link($type, $node = 0, $main) {
menu
(
"blog/"
.
$user
->
uid
,
t
(
"my blog"
),
"blog_page"
,
1
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"blog"
,
t
(
"blogs"
),
"blog_page"
,
0
,
1
);
menu
(
"blog"
,
t
(
"blogs"
),
"blog_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/book.module
View file @
d5c80264
...
...
@@ -84,7 +84,7 @@ function book_link($type, $node = 0, $main = 0) {
}
}
if
(
user_access
(
"access content"
))
{
menu
(
"book"
,
t
(
"books"
),
"book_page"
,
0
,
1
);
menu
(
"book"
,
t
(
"books"
),
"book_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/book/book.module
View file @
d5c80264
...
...
@@ -84,7 +84,7 @@ function book_link($type, $node = 0, $main = 0) {
}
}
if
(
user_access
(
"access content"
))
{
menu
(
"book"
,
t
(
"books"
),
"book_page"
,
0
,
1
);
menu
(
"book"
,
t
(
"books"
),
"book_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/comment.module
View file @
d5c80264
...
...
@@ -842,7 +842,7 @@ function comment_link($type, $node = 0, $main = 0) {
menu
(
"admin/comment/comments/1"
,
t
(
"approval queue"
),
"comment_admin"
,
2
);
menu
(
"admin/comment/search"
,
t
(
"search"
),
"comment_admin"
,
8
);
menu
(
"admin/comment/help"
,
t
(
"help"
),
"comment_help_page"
,
9
);
menu
(
"admin/comment/edit"
,
t
(
"edit comment"
),
"comment_admin"
,
0
,
1
);
menu
(
"admin/comment/edit"
,
t
(
"edit comment"
),
"comment_admin"
,
0
,
MENU_HIDE
);
// comment settings:
if
(
user_access
(
"administer moderation"
))
{
...
...
@@ -853,7 +853,7 @@ function comment_link($type, $node = 0, $main = 0) {
menu
(
"admin/comment/moderation/roles"
,
t
(
"initial scores"
),
"comment_admin"
,
6
);
}
}
menu
(
"comment"
,
t
(
"comments"
),
"comment_page"
,
0
,
1
);
menu
(
"comment"
,
t
(
"comments"
),
"comment_page"
,
0
,
MENU_HIDE
);
}
return
$links
;
...
...
modules/comment/comment.module
View file @
d5c80264
...
...
@@ -842,7 +842,7 @@ function comment_link($type, $node = 0, $main = 0) {
menu
(
"admin/comment/comments/1"
,
t
(
"approval queue"
),
"comment_admin"
,
2
);
menu
(
"admin/comment/search"
,
t
(
"search"
),
"comment_admin"
,
8
);
menu
(
"admin/comment/help"
,
t
(
"help"
),
"comment_help_page"
,
9
);
menu
(
"admin/comment/edit"
,
t
(
"edit comment"
),
"comment_admin"
,
0
,
1
);
menu
(
"admin/comment/edit"
,
t
(
"edit comment"
),
"comment_admin"
,
0
,
MENU_HIDE
);
// comment settings:
if
(
user_access
(
"administer moderation"
))
{
...
...
@@ -853,7 +853,7 @@ function comment_link($type, $node = 0, $main = 0) {
menu
(
"admin/comment/moderation/roles"
,
t
(
"initial scores"
),
"comment_admin"
,
6
);
}
}
menu
(
"comment"
,
t
(
"comments"
),
"comment_page"
,
0
,
1
);
menu
(
"comment"
,
t
(
"comments"
),
"comment_page"
,
0
,
MENU_HIDE
);
}
return
$links
;
...
...
modules/drupal.module
View file @
d5c80264
...
...
@@ -157,7 +157,7 @@ function drupal_auth($username, $password, $server) {
function
drupal_link
(
$type
)
{
if
(
$type
==
"system"
)
{
menu
(
"drupal"
,
"Drupal"
,
"drupal_page"
,
0
,
1
);
menu
(
"drupal"
,
"Drupal"
,
"drupal_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/drupal/drupal.module
View file @
d5c80264
...
...
@@ -157,7 +157,7 @@ function drupal_auth($username, $password, $server) {
function
drupal_link
(
$type
)
{
if
(
$type
==
"system"
)
{
menu
(
"drupal"
,
"Drupal"
,
"drupal_page"
,
0
,
1
);
menu
(
"drupal"
,
"Drupal"
,
"drupal_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/forum.module
View file @
d5c80264
...
...
@@ -104,7 +104,7 @@ function forum_link($type, $node = 0, $main = 0) {
menu
(
"node/add/forum"
,
t
(
"forum topic"
),
"node_page"
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"forum"
,
t
(
"forums"
),
"forum_page"
,
0
,
1
);
menu
(
"forum"
,
t
(
"forums"
),
"forum_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/forum/forum.module
View file @
d5c80264
...
...
@@ -104,7 +104,7 @@ function forum_link($type, $node = 0, $main = 0) {
menu
(
"node/add/forum"
,
t
(
"forum topic"
),
"node_page"
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"forum"
,
t
(
"forums"
),
"forum_page"
,
0
,
1
);
menu
(
"forum"
,
t
(
"forums"
),
"forum_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/import.module
View file @
d5c80264
...
...
@@ -110,7 +110,7 @@ function import_link($type) {
menu
(
"admin/node/syndication/news/help"
,
t
(
"help"
),
"import_help_page"
,
9
);
}
if
(
user_access
(
"access news feeds"
))
{
menu
(
"import"
,
t
(
"news feeds"
),
"import_page"
,
0
,
1
);
menu
(
"import"
,
t
(
"news feeds"
),
"import_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/locale.module
View file @
d5c80264
...
...
@@ -71,8 +71,8 @@ function locale_link($type) {
menu
(
"admin/locale"
,
t
(
"localization"
),
NULL
,
5
);
menu
(
"admin/locale/search"
,
t
(
"search string"
),
"locale_admin"
,
8
);
menu
(
"admin/locale/help"
,
t
(
"help"
),
"locale_help_page"
,
9
);
menu
(
"admin/locale/edit"
,
t
(
"edit string"
),
"locale_admin"
,
0
,
1
);
// hidden menu
menu
(
"admin/locale/delete"
,
t
(
"delete string"
),
"locale_admin"
,
0
,
1
);
// hidden menu
menu
(
"admin/locale/edit"
,
t
(
"edit string"
),
"locale_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/locale/delete"
,
t
(
"delete string"
),
"locale_admin"
,
0
,
MENU_HIDE
);
foreach
(
$languages
as
$key
=>
$value
)
{
menu
(
"admin/locale/
$key
"
,
"
$value
"
,
NULL
);
...
...
modules/locale/locale.module
View file @
d5c80264
...
...
@@ -71,8 +71,8 @@ function locale_link($type) {
menu
(
"admin/locale"
,
t
(
"localization"
),
NULL
,
5
);
menu
(
"admin/locale/search"
,
t
(
"search string"
),
"locale_admin"
,
8
);
menu
(
"admin/locale/help"
,
t
(
"help"
),
"locale_help_page"
,
9
);
menu
(
"admin/locale/edit"
,
t
(
"edit string"
),
"locale_admin"
,
0
,
1
);
// hidden menu
menu
(
"admin/locale/delete"
,
t
(
"delete string"
),
"locale_admin"
,
0
,
1
);
// hidden menu
menu
(
"admin/locale/edit"
,
t
(
"edit string"
),
"locale_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/locale/delete"
,
t
(
"delete string"
),
"locale_admin"
,
0
,
MENU_HIDE
);
foreach
(
$languages
as
$key
=>
$value
)
{
menu
(
"admin/locale/
$key
"
,
"
$value
"
,
NULL
);
...
...
modules/node.module
View file @
d5c80264
...
...
@@ -581,12 +581,12 @@ function node_link($type, $node = 0, $main = 0) {
menu
(
"admin/node"
,
t
(
"content"
),
"node_admin"
);
menu
(
"admin/node/search"
,
t
(
"search"
),
"node_admin"
,
8
);
menu
(
"admin/node/help"
,
t
(
"help"
),
"node_help_page"
,
9
);
menu
(
"admin/node/edit"
,
t
(
"edit post"
),
"node_admin"
,
0
,
1
);
menu
(
"admin/node/edit"
,
t
(
"edit post"
),
"node_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/node/settings"
,
t
(
"settings"
),
"node_admin"
,
8
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"node"
,
t
(
"content"
),
"node_page"
,
0
,
1
);
menu
(
"node"
,
t
(
"content"
),
"node_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/node/node.module
View file @
d5c80264
...
...
@@ -581,12 +581,12 @@ function node_link($type, $node = 0, $main = 0) {
menu
(
"admin/node"
,
t
(
"content"
),
"node_admin"
);
menu
(
"admin/node/search"
,
t
(
"search"
),
"node_admin"
,
8
);
menu
(
"admin/node/help"
,
t
(
"help"
),
"node_help_page"
,
9
);
menu
(
"admin/node/edit"
,
t
(
"edit post"
),
"node_admin"
,
0
,
1
);
menu
(
"admin/node/edit"
,
t
(
"edit post"
),
"node_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/node/settings"
,
t
(
"settings"
),
"node_admin"
,
8
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"node"
,
t
(
"content"
),
"node_page"
,
0
,
1
);
menu
(
"node"
,
t
(
"content"
),
"node_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/poll.module
View file @
d5c80264
...
...
@@ -185,7 +185,7 @@ function poll_link($type, $node = 0, $main) {
menu
(
"node/add/poll"
,
t
(
"poll"
),
"node_page"
,
0
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"poll"
,
t
(
"polls"
),
"poll_page"
,
0
,
1
);
menu
(
"poll"
,
t
(
"polls"
),
"poll_page"
,
0
,
MENU_HIDE
);
}
}
else
if
(
$type
==
"page"
&&
user_access
(
"access content"
))
{
...
...
modules/poll/poll.module
View file @
d5c80264
...
...
@@ -185,7 +185,7 @@ function poll_link($type, $node = 0, $main) {
menu
(
"node/add/poll"
,
t
(
"poll"
),
"node_page"
,
0
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"poll"
,
t
(
"polls"
),
"poll_page"
,
0
,
1
);
menu
(
"poll"
,
t
(
"polls"
),
"poll_page"
,
0
,
MENU_HIDE
);
}
}
else
if
(
$type
==
"page"
&&
user_access
(
"access content"
))
{
...
...
modules/search.module
View file @
d5c80264
...
...
@@ -43,7 +43,7 @@ function search_link($type) {
}
if
(
$type
==
"system"
&&
user_access
(
"search content"
))
{
menu
(
"search"
,
t
(
"search"
),
"search_page"
,
0
,
1
);
menu
(
"search"
,
t
(
"search"
),
"search_page"
,
0
,
MENU_HIDE
);
}
return
$links
;
...
...
modules/search/search.module
View file @
d5c80264
...
...
@@ -43,7 +43,7 @@ function search_link($type) {
}
if
(
$type
==
"system"
&&
user_access
(
"search content"
))
{
menu
(
"search"
,
t
(
"search"
),
"search_page"
,
0
,
1
);
menu
(
"search"
,
t
(
"search"
),
"search_page"
,
0
,
MENU_HIDE
);
}
return
$links
;
...
...
modules/statistics.module
View file @
d5c80264
...
...
@@ -78,14 +78,14 @@ function statistics_link($type, $node = 0, $main = 0) {
menu
(
"admin/statistics/referrers/internal"
,
t
(
"internal referrers only"
),
"statistics_admin"
);
menu
(
"admin/statistics/referrers/external"
,
t
(
"external referrers only"
),
"statistics_admin"
);
menu
(
"admin/statistics/log"
,
t
(
"access log"
),
"statistics_admin"
);
menu
(
"admin/statistics/log/node"
,
t
(
"track node"
),
"statistics_admin"
,
0
,
1
);
//hidden
menu
(
"admin/statistics/log/user"
,
t
(
"track user"
),
"statistics_admin"
,
0
,
1
);
//hidden
menu
(
"admin/statistics/log/host"
,
t
(
"track host"
),
"statistics_admin"
,
0
,
1
);
//hidden
menu
(
"admin/statistics/log/node"
,
t
(
"track node"
),
"statistics_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/statistics/log/user"
,
t
(
"track user"
),
"statistics_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/statistics/log/host"
,
t
(
"track host"
),
"statistics_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/statistics/help"
,
t
(
"help"
),
"statistics_help_page"
,
9
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"statistics"
,
t
(
"view most popular content"
),
"statistics_page"
,
0
,
1
);
menu
(
"statistics"
,
t
(
"view most popular content"
),
"statistics_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/statistics/statistics.module
View file @
d5c80264
...
...
@@ -78,14 +78,14 @@ function statistics_link($type, $node = 0, $main = 0) {
menu
(
"admin/statistics/referrers/internal"
,
t
(
"internal referrers only"
),
"statistics_admin"
);
menu
(
"admin/statistics/referrers/external"
,
t
(
"external referrers only"
),
"statistics_admin"
);
menu
(
"admin/statistics/log"
,
t
(
"access log"
),
"statistics_admin"
);
menu
(
"admin/statistics/log/node"
,
t
(
"track node"
),
"statistics_admin"
,
0
,
1
);
//hidden
menu
(
"admin/statistics/log/user"
,
t
(
"track user"
),
"statistics_admin"
,
0
,
1
);
//hidden
menu
(
"admin/statistics/log/host"
,
t
(
"track host"
),
"statistics_admin"
,
0
,
1
);
//hidden
menu
(
"admin/statistics/log/node"
,
t
(
"track node"
),
"statistics_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/statistics/log/user"
,
t
(
"track user"
),
"statistics_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/statistics/log/host"
,
t
(
"track host"
),
"statistics_admin"
,
0
,
MENU_HIDE
);
menu
(
"admin/statistics/help"
,
t
(
"help"
),
"statistics_help_page"
,
9
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"statistics"
,
t
(
"view most popular content"
),
"statistics_page"
,
0
,
1
);
menu
(
"statistics"
,
t
(
"view most popular content"
),
"statistics_page"
,
0
,
MENU_HIDE
);
}
}
...
...
modules/taxonomy.module
View file @
d5c80264
...
...
@@ -29,7 +29,7 @@ function taxonomy_link($type, $node = NULL) {
menu
(
"admin/taxonomy/help"
,
t
(
"help"
),
"taxonomy_admin"
,
9
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"taxonomy"
,
t
(
"taxonomy"
),
"taxonomy_page"
,
0
,
1
);
menu
(
"taxonomy"
,
t
(
"taxonomy"
),
"taxonomy_page"
,
0
,
MENU_HIDE
);
}
}
else
if
(
$type
==
"taxonomy terms"
&&
$node
!=
NULL
)
{
...
...
modules/taxonomy/taxonomy.module
View file @
d5c80264
...
...
@@ -29,7 +29,7 @@ function taxonomy_link($type, $node = NULL) {
menu
(
"admin/taxonomy/help"
,
t
(
"help"
),
"taxonomy_admin"
,
9
);
}
if
(
user_access
(
"access content"
))
{
menu
(
"taxonomy"
,
t
(
"taxonomy"
),
"taxonomy_page"
,
0
,
1
);
menu
(
"taxonomy"
,
t
(
"taxonomy"
),
"taxonomy_page"
,
0
,
MENU_HIDE
);
}
}
else
if
(
$type
==
"taxonomy terms"
&&
$node
!=
NULL
)
{
...
...
modules/title.module
View file @
d5c80264
...
...
@@ -16,7 +16,7 @@ function title_help($section) {
function
title_link
(
$type
)
{
if
(
$type
==
"system"
)
{
if
(
user_access
(
"access content"
))
{
menu
(
"title"
,
t
(
"search"
),
"title_page"
,
0
,
1
);
menu
(
"title"
,
t
(
"search"
),
"title_page"
,
0
,
MENU_HIDE
);
}
}
}
...
...
modules/user.module
View file @
d5c80264
...
...
@@ -447,18 +447,16 @@ function theme_user_list($items, $title = NULL) {
}
function
user_link
(
$type
)
{
$links
=
array
();
global
$user
;
if
(
$type
==
"system"
)
{
global
$user
;
if
(
$user
->
uid
)
{
menu
(
"user"
,
t
(
"my account"
),
"user_page"
,
8
);
menu
(
"user/edit"
,
t
(
"edit account"
),
"user_page"
,
0
);
menu
(
"user/logout"
,
t
(
"log out"
),
"user_page"
,
10
);
}
else
{
menu
(
"user"
,
t
(
"my account"
),
"user_page"
,
8
,
1
);
menu
(
"user"
,
t
(
"my account"
),
"user_page"
,
8
,
MENU_HIDE
);
}
if
(
user_access
(
"administer users"
))
{
...
...
@@ -471,11 +469,9 @@ function user_link($type) {
menu
(
"admin/user/permission"
,
t
(
"permissions"
),
"user_admin"
,
5
);
menu
(
"admin/user/search"
,
t
(
"search"
),
"user_admin"
,
8
);
menu
(
"admin/user/help"
,
t
(
"help"
),
"user_help_page"
,
9
);
menu
(
"admin/user/edit"
,
t
(
"edit user account"
),
"user_admin"
,
0
,
1
);
// hidden menu
menu
(
"admin/user/edit"
,
t
(
"edit user account"
),
"user_admin"
,
0
,
MENU_HIDE
);
}
}
return
$links
;
}
/*** Authentication methods ************************************************/
...
...
modules/user/user.module
View file @
d5c80264
...
...
@@ -447,18 +447,16 @@ function theme_user_list($items, $title = NULL) {
}
function
user_link
(
$type
)
{
$links
=
array
();
global
$user
;
if
(
$type
==
"system"
)
{
global
$user
;
if
(
$user
->
uid
)
{
menu
(
"user"
,
t
(
"my account"
),
"user_page"
,
8
);
menu
(
"user/edit"
,
t
(
"edit account"
),
"user_page"
,
0
);
menu
(
"user/logout"
,
t
(
"log out"
),
"user_page"
,
10
);
}
else
{
menu
(
"user"
,
t
(
"my account"
),
"user_page"
,
8
,
1
);
menu
(
"user"
,
t
(
"my account"
),
"user_page"
,
8
,
MENU_HIDE
);
}
if
(
user_access
(
"administer users"
))
{
...
...
@@ -471,11 +469,9 @@ function user_link($type) {
menu
(
"admin/user/permission"
,
t
(
"permissions"
),
"user_admin"
,
5
);
menu
(
"admin/user/search"
,
t
(
"search"
),
"user_admin"
,
8
);
menu
(
"admin/user/help"
,
t
(
"help"
),
"user_help_page"
,
9
);
menu
(
"admin/user/edit"
,
t
(
"edit user account"
),
"user_admin"
,
0
,
1
);
// hidden menu
menu
(
"admin/user/edit"
,
t
(
"edit user account"
),
"user_admin"
,
0
,
MENU_HIDE
);
}
}
return
$links
;
}
/*** Authentication methods ************************************************/
...
...
modules/watchdog.module
View file @
d5c80264
...
...
@@ -56,7 +56,7 @@ function watchdog_link($type) {
menu
(
"admin/watchdog/warning"
,
t
(
"warning"
),
"watchdog_admin"
);
menu
(
"admin/watchdog/error"
,
t
(
"error"
),
"watchdog_admin"
);
menu
(
"admin/watchdog/httpd"
,
t
(
"httpd"
),
"watchdog_admin"
);
menu
(
"admin/watchdog/view"
,
t
(
"view details"
),
"watchdog_admin"
,
0
,
1
);
// hidden menu
menu
(
"admin/watchdog/view"
,
t
(
"view details"
),
"watchdog_admin"
,
0
,
MENU_HIDE
);
}
}
}
...
...
modules/watchdog/watchdog.module
View file @
d5c80264
...
...
@@ -56,7 +56,7 @@ function watchdog_link($type) {
menu
(
"admin/watchdog/warning"
,
t
(
"warning"
),
"watchdog_admin"
);
menu
(
"admin/watchdog/error"
,
t
(
"error"
),
"watchdog_admin"
);
menu
(
"admin/watchdog/httpd"
,
t
(
"httpd"
),
"watchdog_admin"
);
menu
(
"admin/watchdog/view"
,
t
(
"view details"
),
"watchdog_admin"
,
0
,
1
);
// hidden menu
menu
(
"admin/watchdog/view"
,
t
(
"view details"
),
"watchdog_admin"
,
0
,
MENU_HIDE
);
}
}
}
...
...
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