Remove "Split summary at cursor" button


/ Published in: PHP
Save to your folder(s)

Replace *foo* with your module name


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.