Posted By

Ateneatech on 11/10/09


Tagged

drupal


Versions (?)

Remove "Split summary at cursor" button


 / Published in: PHP
 

Replace foo with your module name

  1. function foo_form_alter(&$form, $form_state, $form_id) {
  2. if ($form['#id'] == 'node-form') {
  3. if (!empty($form['body_field'])) {
  4. $form['body_field']['teaser_js']['#type'] = 'hidden';
  5. $form['body_field']['teaser_include']['#type'] = 'hidden';
  6. }
  7. }
  8. }

Report this snippet  

You need to login to post a comment.