Closed (fixed)
Project:
Node and Comments Form Settings
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
30 Mar 2011 at 22:54 UTC
Updated:
5 Apr 2018 at 16:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lelizondo commentedComment #2
Wappie08 commentedhmm, didn't found this out yet, at least it has to include ['und']['0'] for the body I think
but that also doesn't work
EDIT: this may be more complicted, I just looked into
http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....
and http://drupal.org/node/1087468
and http://drupal.org/update/modules/6/7#text_format
Basicly you just want to hide the formats by some simple trick(s)...
EDIT 2: maybe the answer is in here: http://drupal.org/node/934976
Greets Wappie
Comment #3
Wappie08 commentedand see http://drupal.org/node/950216 and http://drupal.org/node/934976
Still doesn't work but I need some sleep now :)
Greetings Wappie
Comment #4
Wappie08 commentedComment #5
Wappie08 commentedhmm.. didn't work after all
Comment #6
wcarpent commentedI've also experienced this issue...subscribing.
Comment #7
BenK commentedSubscribing
Comment #8
Wappie08 commentedI came across #35122: Remove 'Formatting guidelines' but that is only for the theming part..
Comment #9
protools commentedsub
Comment #10
protools commentedsub
Comment #11
andres_de commentedIn the codes above (#2 and #3) there is a # missing. It should be:
With this Code I can define the default format.
Comment #12
Shadlington commentedSubscribing
Comment #13
Wappie08 commentedI just stumbled upon a solution: http://timonweb.com/how-remove-format-options-guideliness-comments-texta...
The only thing is the fact that the WYSIWYG is also removed when you put #access false on 'format'..
Greetings Wappie
Comment #14
userofdrupal commentedSubscribing
Comment #15
grabby commentedThis doesn’t work for me either, but hiding the author name and comment title does, which is why I’m using it on a production site anyway. Hope I’m not doing anything dangerous!
Comment #16
Jboo commentedHas anyone found a solution for this yet?
Comment #17
hawkeye.twolfI use this entry in my theme's .css file to hide the Input Format fieldset:
.fieldset-input-format { display: none; }It's also helpful to use the Better Formats module so that you can set the default Input Format per user role and also by node type.
Hope that helps!
Comment #18
kssundar commentedAttached patch that fixes this issue.
The solution is to use hook_element_info_alter().
Comment #19
kssundar commentedAttached updated patch which works for node & comments
Comment #21
kssundar commentedPatch ported to 7.x.2.x
Comment #22
kssundar commented