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
a5c05512
Commit
a5c05512
authored
Jun 14, 2002
by
Kjartan
Browse files
- added some missing title attributs to links.
parent
8cfbe412
Changes
5
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
a5c05512
...
...
@@ -554,10 +554,10 @@ function format_name($object) {
if
(
$object
->
uid
&&
$object
->
name
)
{
if
(
strstr
(
$PHP_SELF
,
"admin.php"
))
{
$output
=
la
(
$object
->
name
,
array
(
"mod"
=>
"user"
,
"op"
=>
"edit"
,
"id"
=>
$object
->
uid
));
$output
=
la
(
$object
->
name
,
array
(
"mod"
=>
"user"
,
"op"
=>
"edit"
,
"id"
=>
$object
->
uid
)
,
""
,
array
(
"title"
=>
t
(
"Administer user profile."
))
);
}
else
{
$output
=
lm
(
$object
->
name
,
array
(
"mod"
=>
"user"
,
"op"
=>
"view"
,
"id"
=>
$object
->
uid
));
$output
=
lm
(
$object
->
name
,
array
(
"mod"
=>
"user"
,
"op"
=>
"view"
,
"id"
=>
$object
->
uid
)
,
""
,
array
(
"title"
=>
t
(
"View user profile."
))
);
}
}
else
{
...
...
@@ -674,7 +674,7 @@ function lm($text, $args = array(), $anchor = "", $attributes = array()) {
}
function
field_get
(
$string
,
$name
)
{
ereg
(
",
$name
=([^,]+)"
,
",
$string
"
,
$regs
);
ereg
(
",
$name
=([^,]+)"
,
",
$string
"
,
$regs
);
return
$regs
[
1
];
}
...
...
modules/page.module
View file @
a5c05512
...
...
@@ -64,9 +64,9 @@ function page_load($node) {
function
page_link
(
$type
)
{
if
(
$type
==
"page"
&&
user_access
(
"access content"
))
{
$result
=
db_query
(
"SELECT n.nid, p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link"
);
$result
=
db_query
(
"SELECT n.nid,
n.title,
p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link"
);
while
(
$page
=
db_fetch_object
(
$result
))
{
$links
[]
=
l
(
$page
->
link
,
array
(
"id"
=>
$page
->
nid
));
$links
[]
=
l
(
$page
->
link
,
array
(
"id"
=>
$page
->
nid
)
,
"node"
,
""
,
array
(
"title"
=>
$page
->
title
)
);
}
}
...
...
modules/page/page.module
View file @
a5c05512
...
...
@@ -64,9 +64,9 @@ function page_load($node) {
function
page_link
(
$type
)
{
if
(
$type
==
"page"
&&
user_access
(
"access content"
))
{
$result
=
db_query
(
"SELECT n.nid, p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link"
);
$result
=
db_query
(
"SELECT n.nid,
n.title,
p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link"
);
while
(
$page
=
db_fetch_object
(
$result
))
{
$links
[]
=
l
(
$page
->
link
,
array
(
"id"
=>
$page
->
nid
));
$links
[]
=
l
(
$page
->
link
,
array
(
"id"
=>
$page
->
nid
)
,
"node"
,
""
,
array
(
"title"
=>
$page
->
title
)
);
}
}
...
...
modules/user.module
View file @
a5c05512
...
...
@@ -384,7 +384,7 @@ function user_link($type) {
if
(
$type
==
"menu.misc"
)
{
if
(
user_access
(
"access administration pages"
))
{
$links
[]
=
la
(
t
(
"administer %a"
,
array
(
"%a"
=>
variable_get
(
"site_name"
,
"drupal"
))));
$links
[]
=
la
(
t
(
"administer %a"
,
array
(
"%a"
=>
variable_get
(
"site_name"
,
"drupal"
)))
,
array
(),
""
,
array
(
"title"
=>
t
(
"Access administration pages."
))
);
}
$links
[]
=
lm
(
t
(
"logout"
),
array
(
"mod"
=>
"user"
,
"op"
=>
"logout"
),
""
,
array
(
"title"
=>
t
(
"Logout."
)));
...
...
modules/user/user.module
View file @
a5c05512
...
...
@@ -384,7 +384,7 @@ function user_link($type) {
if
(
$type
==
"menu.misc"
)
{
if
(
user_access
(
"access administration pages"
))
{
$links
[]
=
la
(
t
(
"administer %a"
,
array
(
"%a"
=>
variable_get
(
"site_name"
,
"drupal"
))));
$links
[]
=
la
(
t
(
"administer %a"
,
array
(
"%a"
=>
variable_get
(
"site_name"
,
"drupal"
)))
,
array
(),
""
,
array
(
"title"
=>
t
(
"Access administration pages."
))
);
}
$links
[]
=
lm
(
t
(
"logout"
),
array
(
"mod"
=>
"user"
,
"op"
=>
"logout"
),
""
,
array
(
"title"
=>
t
(
"Logout."
)));
...
...
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