I noticed that Quiz uses the same URL for results as the Drupal core module Poll.

Please check quiz_menu() in quiz.module:

$items['node/%node/results'] = array(
    'title' => 'Results',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('quiz_results_manage_results_form', 1),
    'access arguments' => array(1),
    'access callback' => 'quiz_access_results',
    'type' => MENU_LOCAL_TASK,
    'file' => 'quiz.admin.inc',
    'weight' => 3,
  );

and also see the code in poll_menu() in poll.module:

$items['node/%node/results'] = array(
    'title' => 'Results',
    'page callback' => 'poll_results',
    'page arguments' => array(1),
    'access callback' => '_poll_menu_access',
    'access arguments' => array(1, 'access content', TRUE),
    'weight' => 3,
    'type' => MENU_LOCAL_TASK,
    'file' => 'poll.pages.inc',
  );

Due to that users can access the poll results page.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

issa.haddadin’s picture

Status: Active » Needs review
FileSize
739 bytes

Here is a patch attached, i just changed the path.

Sivaji_Ganesh_Jojodae’s picture

Status: Needs review » Needs work

Hi Issa.Haddadin,

Thanks for reporting this issue.

I agree that path name to be changed, and attached patch is a good start for the same. But there are pages making link to "node/%node/results" page, to claim this issue as resolved we need to fix that as well (otherwise it would go to polls result page in your case).

djdevin’s picture

Issue summary: View changes
Status: Needs work » 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.