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
93f193d7
Commit
93f193d7
authored
Sep 14, 2004
by
Steven Wittens
Browse files
#8424
: more meaningful link title=".." attributes for node_title_list().
parent
7771fab2
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
93f193d7
...
...
@@ -85,7 +85,7 @@ function node_help_page() {
function
node_title_list
(
$result
,
$title
=
NULL
)
{
while
(
$node
=
db_fetch_object
(
$result
))
{
$number
=
module_invoke
(
'comment'
,
'num_all'
,
$node
->
nid
);
$items
[]
=
l
(
$node
->
title
,
"
node/
$node->nid
"
,
array
(
'title'
=>
format_plural
(
$number
,
'1 comment'
,
'%count comments'
)));
$items
[]
=
l
(
$node
->
title
,
'
node/
'
.
$node
->
nid
,
array
(
'title'
=>
$number
?
format_plural
(
$number
,
'1 comment'
,
'%count comments'
)
:
t
(
'read more'
)
));
}
return
theme
(
'node_list'
,
$items
,
$title
);
...
...
modules/node/node.module
View file @
93f193d7
...
...
@@ -85,7 +85,7 @@ function node_help_page() {
function
node_title_list
(
$result
,
$title
=
NULL
)
{
while
(
$node
=
db_fetch_object
(
$result
))
{
$number
=
module_invoke
(
'comment'
,
'num_all'
,
$node
->
nid
);
$items
[]
=
l
(
$node
->
title
,
"
node/
$node->nid
"
,
array
(
'title'
=>
format_plural
(
$number
,
'1 comment'
,
'%count comments'
)));
$items
[]
=
l
(
$node
->
title
,
'
node/
'
.
$node
->
nid
,
array
(
'title'
=>
$number
?
format_plural
(
$number
,
'1 comment'
,
'%count comments'
)
:
t
(
'read more'
)
));
}
return
theme
(
'node_list'
,
$items
,
$title
);
...
...
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