private function ChoiceQuestion::getDefaultAltSettings in Quiz 6.6
1 call to ChoiceQuestion::getDefaultAltSettings()
- ChoiceQuestion::getCreationForm in question_types/
choice/ choice.classes.inc - Implementation of getCreation form
File
- question_types/
choice/ choice.classes.inc, line 503 - The main classes for the choice question type.
Class
- ChoiceQuestion
- Implementation of QuizQuestion.
Code
private function getDefaultAltSettings() {
$to_return = array();
if (isset($this->node->nid)) {
$to_return['choice_multi'] = $this->node->choice_multi;
$to_return['choice_random'] = $this->node->choice_random;
$to_return['choice_boolean'] = $this->node->choice_boolean;
}
elseif ($to_return = $this
->getUserSettings()) {
}
else {
$to_return['choice_multi'] = 0;
$to_return['choice_random'] = 0;
$to_return['choice_boolean'] = 0;
}
return $to_return;
}