Hide format drop down from body

Drupal is such a nice CMS but some of the additional feature may gives us trouble for non technical users. The very common example is Text format drop down in body field. Most of the user try many ways to hide that details. Use following code to hide drop down from node add/edit form


Using hook_form_alter add following code in form alter.


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


Please share your thoughts if you have any other quick way to hide.




Comments

  1. how to edit it???

    ReplyDelete
  2. Yes, indeed! Tell more clear, please.
    1. Open blablafile.inc
    2. replace or add lines: blabla
    3. save.
    thank you.

    is it so hard to do that?

    ReplyDelete

Post a Comment