You are here

function faq_node_info in Frequently Asked Questions 6

Same name and namespace in other branches
  1. 5.2 faq.module \faq_node_info()
  2. 5 faq.module \faq_node_info()
  3. 7 faq.module \faq_node_info()

Implements hook_node_info().

Defines the FAQ node/content type.

Return value

An array, containing the title, module name and the description.

File

./faq.module, line 186
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_node_info() {
  return array(
    'faq' => array(
      'name' => t('FAQ'),
      'module' => 'faq',
      'description' => t('A frequently asked question and its answer.'),
      'title_label' => t('Question'),
      'body_label' => t('Answer'),
    ),
  );
}