You are here

function faq_content_extra_fields in Frequently Asked Questions 6

Implements hook_content_extra_fields().

File

./faq.module, line 354
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_content_extra_fields($type_name) {
  $extras = array();
  if ($type_name == 'faq') {
    $extras['detailed_question'] = array(
      'label' => t('Detailed question'),
      'description' => t('FAQ detailed question field'),
      'weight' => 10,
    );
  }
  return $extras;
}