Skip to content
Snippets Groups Projects
Commit 1873b536 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #1366518 by chris.leversuch: 'Columns' is misspelled (()) in theme_field_ui_table().

parent 9927d580
No related branches found
No related tags found
No related merge requests found
......@@ -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;
$columns_count = 0;
foreach ($table['header'] as $header) {
$colums_count += (is_array($header) && isset($header['colspan']) ? $header['colspan'] : 1);
$columns_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' => $columns_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' => $columns_count),
),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment