Explorar el Código

change body field height systematicaly

Bachir Soussi Chiadmi hace 11 años
padre
commit
332c17c25c
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      materio_admin.module

+ 3 - 1
materio_admin.module

@@ -144,11 +144,13 @@ function materio_admin_form_simplenews_node_form_alter(&$form, &$form_state, $fo
 
       // change default template regarding type of news
       $form['body']['und'][0]['#default_value'] = materio_admin_getSimplenewsNodeBodyTemplate($cat);
-      $form['body']['und'][0]['#rows'] = 50;
     }
   }else{
     $form['field_simplenews_term']['und']['#disabled'] = true;
   }
+
+  $form['body']['und'][0]['#rows'] = 50;
+
 }
 
 function materio_admin_getSimplenewsNodeBodyTemplate($cat){