Can there be a way to remove the Question Details from both the FAQ content creation as well as the display?

Comments

stella’s picture

For 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.

gburnham’s picture

Ok, 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?

stella’s picture

You 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.

gburnham’s picture

Right, 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?

stella’s picture

Status: Active » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

stella’s picture

Released in 6.x-1.12.