function faq_form in Frequently Asked Questions 7
Same name and namespace in other branches
- 5.2 faq.module \faq_form()
- 5 faq.module \faq_form()
- 6 faq.module \faq_form()
Implements hook_form().
Parameters
object $node: The node being added or edited.
array $form_state: The hook can set this variable to an associative array of attributes to add to the enclosing <form> tag.
Return value
array The form elements in the $form array.
File
- ./
faq.module, line 216 - The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.
Code
function faq_form($node, $form_state) {
$type = node_type_get_type($node);
$form = node_content_form($node, $form_state);
$form['title']['#description'] = t('Question to be answered. This will appear in all question listings, such as the FAQ blocks.');
return $form;
}