You are here

function multichoice_install in Quiz 7.5

Same name and namespace in other branches
  1. 8.4 question_types/multichoice/multichoice.install \multichoice_install()
  2. 5.2 multichoice.install \multichoice_install()
  3. 6.6 question_types/multichoice/multichoice.install \multichoice_install()
  4. 6.2 multichoice.install \multichoice_install()
  5. 6.3 question_types/multichoice/multichoice.install \multichoice_install()
  6. 6.4 question_types/multichoice/multichoice.install \multichoice_install()
  7. 6.5 question_types/multichoice/multichoice.install \multichoice_install()
  8. 7.6 question_types/multichoice/multichoice.install \multichoice_install()
  9. 7 question_types/multichoice/multichoice.install \multichoice_install()
  10. 7.4 question_types/multichoice/multichoice.install \multichoice_install()

Implements hook_install().

File

question_types/multichoice/multichoice.install, line 11
Multichoice questions install file.

Code

function multichoice_install() {

  // Add body field to multichoice node.
  quiz_question_add_body_field('multichoice');
  variable_set('node_options_multichoice', array(
    'status',
  ));
}