Posted on: Monday, 29 August 2011 @ 1:22pm
Blatting about
Following on from hiding unwanted elements in comment forms, I found this tip on one of the many threads in Drupal of people trying to hide the pesky formatting guidelines and came up with:
template.php
That gets rid of everything but the fieldset container and for the roles that can use multiple text formats, the select box (the "Text format" label can be easily removed with $form['und'][0]['format']['format']['#title'] = ''; in the comment_form_alter).
I haven't worked out a way to unset or otherwise prevent the select box from rendering without obliterating TinyMCE, so will have to continue letting display: none; on .filter-wrapper hide it for now :)
No comments yet
'twas helpful, thanks!
- Reply
use unset($form['und'][0]['format']); if want to remove every thing like help, guidelines, and text format types etc
Hey Bek, Second time I've wound up on this page so I thought I'd comment.:)- Sam.
Thanks ! It helped me to solve a similar problem, limiting the filter formats choices :http://drupal.org/node/1003262#comment-6041552
entire Internet idiots this post is just a piece of shit