You are here

function _quiz_question_teaser_content in Quiz 8.4

Same name and namespace in other branches
  1. 6.4 question_types/quiz_question/quiz_question.module \_quiz_question_teaser_content()
  2. 7.6 question_types/quiz_question/quiz_question.module \_quiz_question_teaser_content()
  3. 7 question_types/quiz_question/quiz_question.module \_quiz_question_teaser_content()
  4. 7.4 question_types/quiz_question/quiz_question.module \_quiz_question_teaser_content()

Form for teaser display

Parameters

$node: The question node

Return value

Content array

1 call to _quiz_question_teaser_content()
quiz_question_node_view in question_types/quiz_question/quiz_question.module
Implements hook_node_view().

File

question_types/quiz_question/quiz_question.module, line 263
Quiz Question module. This module provides the basic facilities for adding quiz question types to a quiz.

Code

function _quiz_question_teaser_content($node) {
  $content['question_type'] = array(
    '#markup' => '<div class="question_type_name">' . node_type_load($node
      ->getType())->name . '</div>',
    '#weight' => -100,
  );
  return $content;
}