Remove WYSIWYG From Individual Node Edit Forms

Sometimes you have a particular node edit form that you DO NOT way the WYSIWYG editor to appear on. Just drop the following into your site specific custom module.

/*
* remove tinymce wysiwyg from individual textareas.
*/
function utility_form_alter(&$form, &$form_state, $form_id) {
  // get the current url
  $req = request_uri();
  switch ($req) {
    case '/node/25/edit':
      $form['body_field']['format'] = array();
    break;
  }
}

Contact Me

Feel free to contact me.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.