You are here

function quiz_entity_info_alter in Quiz 7.5

Same name and namespace in other branches
  1. 7.6 quiz.module \quiz_entity_info_alter()
  2. 7.4 quiz.module \quiz_entity_info_alter()

Implements hook_entity_info_alter().

File

./quiz.module, line 75
quiz.module Main file for the Quiz module.

Code

function quiz_entity_info_alter(&$info) {

  // Add a new view mode for displaying the question when taking a quiz.
  $info['node']['view modes'] += array(
    'question' => array(
      'label' => t('Question'),
      'custom settings' => FALSE,
    ),
  );
  $info['quiz']['type']['result_type'] = 'quiz_result_type';
}