You are here

function answers_node_info in Answers 5.2

Same name and namespace in other branches
  1. 6.2 answers.features.inc \answers_node_info()
  2. 6 answers.features.inc \answers_node_info()
  3. 7.4 answers.module \answers_node_info()
  4. 7 answers.features.inc \answers_node_info()
  5. 7.2 answers.features.inc \answers_node_info()
  6. 7.3 answers.features.inc \answers_node_info()

Implementation of hook_node_info().

File

./answers.module, line 27
Enables the creation of question nodes that can be answered by posting answer nodes.

Code

function answers_node_info() {
  return array(
    'answers' => array(
      'name' => t('Question'),
      'module' => 'answers',
      'description' => t("Post a question."),
      'has_title' => TRUE,
      'title_label' => t('Question'),
      'has_body' => TRUE,
      'body_label' => t('Add details'),
    ),
  );
}