Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
c5fb69fb
Commit
c5fb69fb
authored
Oct 24, 2007
by
Gábor Hojtsy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#156144
by lyricnz: do not show 'select all' checbox when there are no rows in the node admin table
parent
bb9bae4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/node/node.admin.inc
modules/node/node.admin.inc
+6
-3
No files found.
modules/node/node.admin.inc
View file @
c5fb69fb
...
...
@@ -406,8 +406,11 @@ function node_admin_nodes() {
* Theme node administration overview.
*/
function
theme_node_admin_nodes
(
$form
)
{
// Overview table:
$header
=
array
(
theme
(
'table_select_header_cell'
),
t
(
'Title'
),
t
(
'Type'
),
t
(
'Author'
),
t
(
'Status'
));
// If there are rows in this form, then $form['title'] contains a list of
// the title form elements.
$has_posts
=
isset
(
$form
[
'title'
])
&&
is_array
(
$form
[
'title'
]);
$select_header
=
$has_posts
?
theme
(
'table_select_header_cell'
)
:
''
;
$header
=
array
(
$select_header
,
t
(
'Title'
),
t
(
'Type'
),
t
(
'Author'
),
t
(
'Status'
));
if
(
isset
(
$form
[
'language'
]))
{
$header
[]
=
t
(
'Language'
);
}
...
...
@@ -415,7 +418,7 @@ function theme_node_admin_nodes($form) {
$output
=
''
;
$output
.
=
drupal_render
(
$form
[
'options'
]);
if
(
isset
(
$form
[
'title'
])
&&
is_array
(
$form
[
'title'
])
)
{
if
(
$has_posts
)
{
foreach
(
element_children
(
$form
[
'title'
])
as
$key
)
{
$row
=
array
();
$row
[]
=
drupal_render
(
$form
[
'nodes'
][
$key
]);
...
...
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