Published in: PHP
Replace foo with your module name
Expand |
Embed | Plain Text
function foo_form_alter(&$form, $form_state, $form_id) { if ($form['#id'] == 'node-form') { $form['body_field']['teaser_js']['#type'] = 'hidden'; $form['body_field']['teaser_include']['#type'] = 'hidden'; } } }
You need to login to post a comment.