You are here

function quiz_entity_info_alter in Quiz 7.4

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

Implements hook_entity_info_alter().

File

./quiz.module, line 103
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' => TRUE,
    ),
  );
}