Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Because now the textareas for both Body and Comments are fields using the Field API, the old way of hiding the input format fieldset is not working.
Comment | File | Size | Author |
---|---|---|---|
#19 | issue-1111308.patch | 5.83 KB | kssundar |
#18 | nodeformsettings.module_1111308.patch | 2.54 KB | kssundar |
Comments
Comment #1
lelizondo CreditAttribution: lelizondo commentedComment #2
Wappie08 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Wappie08 commentedComment #5
Wappie08 CreditAttribution: Wappie08 commentedhmm.. didn't work after all
Comment #6
wcarpent CreditAttribution: wcarpent commentedI've also experienced this issue...subscribing.
Comment #7
BenK CreditAttribution: BenK commentedSubscribing
Comment #8
Wappie08 CreditAttribution: Wappie08 commentedI came across [#35122] but that is only for the theming part..
Comment #9
protools CreditAttribution: protools commentedsub
Comment #10
protools CreditAttribution: protools commentedsub
Comment #11
andres_de CreditAttribution: 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 CreditAttribution: Shadlington commentedSubscribing
Comment #13
Wappie08 CreditAttribution: 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 CreditAttribution: userofdrupal commentedSubscribing
Comment #15
Grabby CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: kssundar as a volunteer and at Capgemini commentedAttached patch that fixes this issue.
The solution is to use hook_element_info_alter().
Comment #19
kssundar CreditAttribution: kssundar as a volunteer and at Capgemini commentedAttached updated patch which works for node & comments
Comment #21
kssundar CreditAttribution: kssundar as a volunteer and at Capgemini commentedPatch ported to 7.x.2.x
Comment #22
kssundar CreditAttribution: kssundar as a volunteer and at Capgemini commented