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
24af61ed
Commit
24af61ed
authored
Dec 29, 2002
by
Dries
Browse files
- Put back the node table paging.
parent
14158fbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
24af61ed
...
...
@@ -498,7 +498,10 @@ function node_admin_nodes() {
while
(
$node
=
db_fetch_object
(
$result
))
{
$rows
[]
=
array
(
l
(
check_output
(
$node
->
title
),
array
(
"id"
=>
$node
->
nid
)),
module_invoke
(
$node
->
type
,
"node"
,
"name"
),
format_name
(
$node
),
(
$node
->
status
?
t
(
"published"
)
:
t
(
"not published"
)),
la
(
t
(
"edit node"
),
array
(
"mod"
=>
"node"
,
"op"
=>
"edit"
,
"id"
=>
$node
->
nid
)),
la
(
t
(
"delete node"
),
array
(
"mod"
=>
"node"
,
"op"
=>
"delete"
,
"id"
=>
$node
->
nid
)));
}
// $output .= "<tr><td colspan=\"6\">". pager_display(NULL, 50, 0, "admin") ."</td></tr></table>";
if
(
$pager
=
pager_display
(
NULL
,
50
,
0
,
"admin"
))
{
$rows
[]
=
array
(
array
(
"data"
=>
$pager
,
"colspan"
=>
6
));
}
return
table
(
$header
,
$rows
);
}
...
...
modules/node/node.module
View file @
24af61ed
...
...
@@ -498,7 +498,10 @@ function node_admin_nodes() {
while
(
$node
=
db_fetch_object
(
$result
))
{
$rows
[]
=
array
(
l
(
check_output
(
$node
->
title
),
array
(
"id"
=>
$node
->
nid
)),
module_invoke
(
$node
->
type
,
"node"
,
"name"
),
format_name
(
$node
),
(
$node
->
status
?
t
(
"published"
)
:
t
(
"not published"
)),
la
(
t
(
"edit node"
),
array
(
"mod"
=>
"node"
,
"op"
=>
"edit"
,
"id"
=>
$node
->
nid
)),
la
(
t
(
"delete node"
),
array
(
"mod"
=>
"node"
,
"op"
=>
"delete"
,
"id"
=>
$node
->
nid
)));
}
// $output .= "<tr><td colspan=\"6\">". pager_display(NULL, 50, 0, "admin") ."</td></tr></table>";
if
(
$pager
=
pager_display
(
NULL
,
50
,
0
,
"admin"
))
{
$rows
[]
=
array
(
array
(
"data"
=>
$pager
,
"colspan"
=>
6
));
}
return
table
(
$header
,
$rows
);
}
...
...
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