function question_hash in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/lib/questionlib.php \question_hash()
Creates a stamp that uniquely identifies this version of the question
In future we want this to use a hash of the question data to guarantee that identical versions have the same version stamp.
Parameters
object $question:
Return value
string A unique version stamp
2 calls to question_hash()
- qformat_coursetestmanager::importprocess in includes/
moodle/ question/ format/ coursetestmanager/ format.php - Process the file This method should not normally be overidden
- qformat_default::importprocess in includes/
moodle/ question/ format.php - Process the file This method should not normally be overidden
File
- includes/
moodle/ lib/ questionlib.php, line 1665
Code
function question_hash($question) {
return make_unique_id_code();
}