change body field height systematicaly

This commit is contained in:
Bachir Soussi Chiadmi 2014-04-25 17:25:48 +02:00
parent a64d6e34d8
commit 332c17c25c

View File

@ -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){