public function LongAnswerQuestion::saveNodeProperties in Quiz 7.5
Same name and namespace in other branches
- 6.4 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::saveNodeProperties()
- 7.6 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::saveNodeProperties()
- 7 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::saveNodeProperties()
- 7.4 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::saveNodeProperties()
Implementation of saveNodeProperties().
Overrides QuizQuestion::saveNodeProperties
See also
QuizQuestion::saveNodeProperties()
File
- question_types/
long_answer/ long_answer.classes.inc, line 21 - Long answer classes.
Class
- LongAnswerQuestion
- Extension of QuizQuestion.
Code
public function saveNodeProperties($is_new = FALSE) {
db_merge('quiz_long_answer_node_properties')
->key(array(
'nid' => $this->node->nid,
'vid' => $this->node->vid,
))
->fields(array(
'nid' => $this->node->nid,
'vid' => $this->node->vid,
'rubric' => $this->node->rubric['value'],
'rubric_format' => $this->node->rubric['format'],
'answer_text_processing' => $this->node->answer_text_processing,
))
->execute();
}