You are here

function short_answer_install in Quiz 7

Same name and namespace in other branches
  1. 8.4 question_types/short_answer/short_answer.install \short_answer_install()
  2. 6.6 question_types/short_answer/short_answer.install \short_answer_install()
  3. 6.3 question_types/short_answer/short_answer.install \short_answer_install()
  4. 6.4 question_types/short_answer/short_answer.install \short_answer_install()
  5. 6.5 question_types/short_answer/short_answer.install \short_answer_install()
  6. 7.6 question_types/short_answer/short_answer.install \short_answer_install()
  7. 7.4 question_types/short_answer/short_answer.install \short_answer_install()
  8. 7.5 question_types/short_answer/short_answer.install \short_answer_install()

Implements hook_install().

File

question_types/short_answer/short_answer.install, line 11
The installer file for short_answer.

Code

function short_answer_install() {

  // Add body field to short answer node
  quiz_question_add_body_field('short_answer');
  variable_set('node_options_short_answer', array(
    'status',
  ));
  cache_clear_all('autoload:', 'cache');
}