You are here

function answers_node_info in Answers 7.4

Same name and namespace in other branches
  1. 5.2 answers.module \answers_node_info()
  2. 6.2 answers.features.inc \answers_node_info()
  3. 6 answers.features.inc \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()

Implements hook_node_info().

File

./answers.module, line 254
The Answers module.

Code

function answers_node_info() {
  return array(
    'answers_question' => array(
      'name' => t('!Question', answers_translation()),
      'base' => 'answers',
      'description' => t('A !question which can be !answer_submitted by other users.', answers_translation()),
      'title_label' => t('Title'),
      'locked' => TRUE,
    ),
    'answers_answer' => array(
      'name' => t('!Answer', answers_translation()),
      'base' => 'answers',
      'description' => t('An !answer provided to !question !question_submitted by a member of the community.', answers_translation()),
      'has_title' => FALSE,
      'locked' => TRUE,
    ),
  );
}