How to hide text format options when using WYSIWIG module? Using this tip I was previously hiding the text format options with

$form['und'][0]['format']['#access'] = FALSE; 


When I enabled WYSIWYG it wouldn't show the editor and I had to use

$form['und'][0]['format']['format']['#access'] = FALSE;
$form['und'][0]['format']['guidelines']['#access'] = FALSE; 
$form['und'][0]['format']['help']['#access'] = FALSE; 


What's left now is this bottom box (below Path: p...)


This is the HTML that's generating it:

&lt;fieldset class="filter-wrapper form-wrapper" id="edit-comment-body-und-0-format"&gt;
    &lt;div class="fieldset-wrapper"&gt;&lt;input id="edit-comment-body-und-0-format--2" class="wysiwyg wysiwyg-processed" type="hidden" name="comment_body[und][0][format]" value="filtered_html"&gt;&lt;/div&gt;
&lt;/fieldset&gt;


I could hide it with CSS. How would I hide it with code similar to above? Btw, I'm aware of Better Formats module but don't want to use it just for that.
Try unsetting the field elements. According to the blog post this kills TinyMCE

&lt;?php
  function [theme_name]_form_comment_form_alter(&amp;$form, &amp;$form_state, $form_id)
  {
    $form['comment_body']['#after_build'][] = 'remove_tips';
  }

  function remove_tips(&amp;$form)
  {
    unset($form['und'][0]['format']['guidelines']);
    unset($form['und'][0]['format']['help']);
    return $form;
  }
?&gt;


source: technonaturalist