Closed (fixed)
Project:
Frequently Asked Questions
Version:
6.x-1.11
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2010 at 19:08 UTC
Updated:
29 Oct 2010 at 10:04 UTC
Can there be a way to remove the Question Details from both the FAQ content creation as well as the display?
Comments
Comment #1
stella commentedFor display, just configure the display settings at admin/settings/FAQ/questions - pick short question text. For the form, you will need to use a hook_form_alter() to remove the field.
Comment #2
gburnham commentedOk, so I added the function "faq_form_faq_node_form_alter". If the variable "faq_question_length" is "short", then I remove the "detailed_question" part of the form. But now I have to redo this when there's an update to the module, right?
Comment #3
stella commentedYou should not modify the faq module, so you should be adding the hook_form_alter in your own custom module, i.e. mymodule_form_faq_node_form_alter() and that way you don't have to worry about redoing this when there is an update to the module.
Comment #4
gburnham commentedRight, of course. Don't know what I was thinking there.
But I did categorize this as a "feature request" - doesn't it make sense to exclude the detail field if only the short question is selected?
Comment #5
stella commentedCommitted.
Comment #7
stella commentedReleased in 6.x-1.12.