Commit 1873b536 authored by Dries's avatar Dries
Browse files

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

parent 9927d580
......@@ -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),
),
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment