function quiz_entity_info_alter in Quiz 7.5
Same name and namespace in other branches
- 7.6 quiz.module \quiz_entity_info_alter()
- 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';
}