12345678910111213141516 |
- diff --git a/nodeformcols.module b/nodeformcols.module
- index b27f9b5..53ec8f0 100644
- --- a/nodeformcols.module
- +++ b/nodeformcols.module
- @@ -137,8 +137,9 @@ function template_preprocess_node_form(&$aVars) {
- continue;
- }
-
- - if (isset($placements[$key])) {
- - $p = $placements[$key];
- + if (isset($placements[$key]) || isset($field['#placement'])) {
- + $p = isset($placements[$key]) ? $placements[$key] : $field['#placement'];
- + unset($field['#placement']);
-
- if (isset($p['weight'])) {
- $field['#weight'] = $p['weight'];
|