/**
* Primary quiz-taking view on 'Take' tab.
*/
In quiz.module, the drupal alter code is commented which is needed for other module(s), like quiz_ty to work. I think we need to enable that line.

function quiz_take($node) {
  //drupal_alter('quiz_take', $node);
  if (isset($node->rendered_content)) {
    return $node->rendered_content;
  }
  $to_be_rendered = quiz_take_quiz($node);
  return drupal_render($to_be_rendered);
}

/**

CommentFileSizeAuthor
#1 drupal-alter-quiz-1905990.patch431 bytesselvamkf

Comments

selvamkf’s picture

StatusFileSize
new431 bytes

I am attaching the patch to enable the drupal alter again.

mcpuddin’s picture

I need this also, but I'm curious why this was taken out in the first place?

If we put this patch in, which version should we test it against.. 7.x-4.x-dev?

mcpuddin’s picture

Apparently that line of code was committed out on Jun 10, 2011 by sivaji in commit e20b24a for issue #714072: D7 Port of Quiz for no other reason except it wasn't d7 compatible. I assume sivaji was just trimming fat that didn't seem necessary in order to get the port out with the hope that someone would bring it back in if necessary.

With that said, I would assume your patch is not D7 compatible since it was taken out during the D7 port.

mcpuddin’s picture

Looking into this a little deeper, the following alter code was first inserted because of introducing a "take" tab. The history of the code is here for convenience reasons:

  • quiz_take alter - Dec 20, 2009: commit f241ff2: issue #507664: Move quiz-taking UI into a Take tab
  • node->rendered_content code - June 30, 2010 : commit 69b61d5 : "Removed preview changes button and improved quiz_take_alter api"

So if a patch is included it should take that into consideration.

djdevin’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.