You are here

function multichoice_update_6300 in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 question_types/multichoice/multichoice.install \multichoice_update_6300()
  2. 6.3 question_types/multichoice/multichoice.install \multichoice_update_6300()
  3. 6.4 question_types/multichoice/multichoice.install \multichoice_update_6300()

Implementation of hook_update_N(). Change the question field to a text field to allow long questions.

File

question_types/multichoice/multichoice.install, line 13
Multichoice Install (a quiz question type)

Code

function multichoice_update_6300() {
  $ret = array();
  $spec = array(
    'type' => 'text',
  );
  db_change_field($ret, 'quiz_multichoice_answers', 'answer', 'answer', $spec);
  return $ret;
}