function quiz_entity_info_alter in Quiz 7.6
Same name and namespace in other branches
- 7.4 quiz.module \quiz_entity_info_alter()
- 7.5 quiz.module \quiz_entity_info_alter()
Implements hook_entity_info_alter().
File
- ./
quiz.module, line 73 - 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,
),
);
}