Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d5c80264
Commit
d5c80264
authored
Dec 17, 2003
by
Dries
Browse files
- Updated the calls to menu() to use MENU_HIDE instead of 1
parent
928c113b
Changes
32
Hide whitespace changes
Inline
Side-by-side
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"
))
{
...
...
Prev
1
2
Next
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