You are here

public function QuizDirectionsQuestion::save in Quiz 6.3

Same name and namespace in other branches
  1. 6.6 question_types/quiz_directions/quiz_directions.classes.inc \QuizDirectionsQuestion::save()
  2. 6.5 question_types/quiz_directions/quiz_directions.classes.inc \QuizDirectionsQuestion::save()

Responsible for handling insert/update of question-specific data. This is typically called from within the Node API, so there is no need to save the node. This function is only responsible for saving data specific to the implement ation.

The $is_new flag is set to TRUE whenever the node is being initially created.

A save function is required to handle the following three situations:

  • A new node is created ($is_new is TRUE)
  • A new node *revision* is created ($is_new is NOT set, because the node itself is not new).
  • An existing node revision is modified.

Parameters

$is_new: TRUE when the node is initially created.

Overrides QuizQuestion::save

File

question_types/quiz_directions/quiz_directions.classes.inc, line 34
quiz_directions.classes

Class

QuizDirectionsQuestion
Implementation of QuizQuestion.

Code

public function save($is_new = FALSE) {
}