modules_assign_region_0.patch 565 B

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