Skip to content
Snippets Groups Projects
Commit a11db55c authored by Joshua Ellinger's avatar Joshua Ellinger
Browse files

User Experience: add link to questions on not enough random error

Issue #199590 by myself
parent 2fef0936
No related branches found
No related tags found
No related merge requests found
......@@ -905,7 +905,8 @@ function quiz_take_quiz() {
// Create question list.
$questions = quiz_build_question_list($quiz);
if ($questions === FALSE) {
drupal_set_message(t('Not enough random questions were found. Please add more questions before trying to take this @quiz.', array('@quiz' => QUIZ_NAME)), 'error');
drupal_set_message(t('Not enough random questions were found. Please !add more questions before trying to take this @quiz.',
array('@quiz' => QUIZ_NAME, '!add more questions' => l('add more questions', 'node/'. arg(1) .'/questions'))), 'error');
return '';
}
if (count($questions) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment