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
1873b536
Commit
1873b536
authored
Dec 10, 2011
by
Dries
Browse files
- Patch
#1366518
by chris.leversuch: 'Columns' is misspelled (()) in theme_field_ui_table().
parent
9927d580
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/field_ui/field_ui.admin.inc
View file @
1873b536
...
...
@@ -226,9 +226,9 @@ function theme_field_ui_table($variables) {
// Determine the colspan to use for region rows, by checking the number of
// columns in the headers.
$colums_count
=
0
;
$colum
n
s_count
=
0
;
foreach
(
$table
[
'header'
]
as
$header
)
{
$colums_count
+=
(
is_array
(
$header
)
&&
isset
(
$header
[
'colspan'
])
?
$header
[
'colspan'
]
:
1
);
$colum
n
s_count
+=
(
is_array
(
$header
)
&&
isset
(
$header
[
'colspan'
])
?
$header
[
'colspan'
]
:
1
);
}
// Render rows, region by region.
...
...
@@ -241,7 +241,7 @@ function theme_field_ui_table($variables) {
'class'
=>
array
(
'region-title'
,
'region-'
.
$region_name_class
.
'-title'
),
'no_striping'
=>
TRUE
,
'data'
=>
array
(
array
(
'data'
=>
$region
[
'title'
],
'colspan'
=>
$colums_count
),
array
(
'data'
=>
$region
[
'title'
],
'colspan'
=>
$colum
n
s_count
),
),
);
}
...
...
@@ -251,7 +251,7 @@ function theme_field_ui_table($variables) {
'class'
=>
array
(
'region-message'
,
'region-'
.
$region_name_class
.
'-message'
,
$class
),
'no_striping'
=>
TRUE
,
'data'
=>
array
(
array
(
'data'
=>
$region
[
'message'
],
'colspan'
=>
$colums_count
),
array
(
'data'
=>
$region
[
'message'
],
'colspan'
=>
$colum
n
s_count
),
),
);
}
...
...
Write
Preview
Supports
Markdown
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