You are here

function answers_node_info in Answers 7.3

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.4 answers.module \answers_node_info()
  5. 7 answers.features.inc \answers_node_info()
  6. 7.2 answers.features.inc \answers_node_info()

Implements hook_node_info().

File

./answers.features.inc, line 28
answers.features.inc

Code

function answers_node_info() {
  $items = array(
    'answer' => array(
      'name' => t('!Answer', answers_translation()),
      'base' => 'node_content',
      'description' => t('An !answer provided to !question asked by a member of the community', answers_translation()),
      'has_title' => '1',
      'title_label' => t('!Answer', answers_translation()),
      'help' => '',
    ),
    'question' => array(
      'name' => t('!Question', answers_translation()),
      'base' => 'node_content',
      'description' => t('A !question which can be answered by other users', answers_translation()),
      'has_title' => '1',
      'title_label' => t('!Question', answers_translation()),
      'help' => '',
    ),
  );
  return $items;
}