- Patch #1366518 by chris.leversuch: 'Columns' is misspelled (()) in theme_field_ui_table().
parent
9927d5804f
commit
1873b53650
|
@ -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),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue