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
dff2df48
Commit
dff2df48
authored
Sep 27, 2005
by
Dries
Browse files
- Patch
#28786
by Neil: moved pagers out of table.
parent
53bdeae2
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/comment.module
View file @
dff2df48
...
...
@@ -1005,7 +1005,6 @@ function comment_delete($cid) {
* Menu callback; present an administrative comment listing.
*/
function
comment_admin_overview
(
$type
=
'new'
)
{
$header
=
array
(
array
(
'data'
=>
t
(
'Subject'
),
'field'
=>
'subject'
),
array
(
'data'
=>
t
(
'Author'
),
'field'
=>
'u.name'
),
...
...
@@ -1032,15 +1031,13 @@ function comment_admin_overview($type = 'new') {
);
}
if
(
$pager
=
theme
(
'pager'
,
NULL
,
50
,
0
,
tablesort_pager
()))
{
$rows
[]
=
array
(
array
(
'data'
=>
$pager
,
'colspan'
=>
'6'
));
}
if
(
!
$rows
)
{
$rows
[]
=
array
(
array
(
'data'
=>
t
(
'No comments available.'
),
'colspan'
=>
'6'
));
}
return
theme
(
'table'
,
$header
,
$rows
);
$output
=
theme
(
'table'
,
$header
,
$rows
);
$output
.
=
theme
(
'pager'
,
NULL
,
50
,
0
,
tablesort_pager
());
return
$output
;
}
/**
...
...
modules/comment/comment.module
View file @
dff2df48
...
...
@@ -1005,7 +1005,6 @@ function comment_delete($cid) {
* Menu callback; present an administrative comment listing.
*/
function
comment_admin_overview
(
$type
=
'new'
)
{
$header
=
array
(
array
(
'data'
=>
t
(
'Subject'
),
'field'
=>
'subject'
),
array
(
'data'
=>
t
(
'Author'
),
'field'
=>
'u.name'
),
...
...
@@ -1032,15 +1031,13 @@ function comment_admin_overview($type = 'new') {
);
}
if
(
$pager
=
theme
(
'pager'
,
NULL
,
50
,
0
,
tablesort_pager
()))
{
$rows
[]
=
array
(
array
(
'data'
=>
$pager
,
'colspan'
=>
'6'
));
}
if
(
!
$rows
)
{
$rows
[]
=
array
(
array
(
'data'
=>
t
(
'No comments available.'
),
'colspan'
=>
'6'
));
}
return
theme
(
'table'
,
$header
,
$rows
);
$output
=
theme
(
'table'
,
$header
,
$rows
);
$output
.
=
theme
(
'pager'
,
NULL
,
50
,
0
,
tablesort_pager
());
return
$output
;
}
/**
...
...
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