Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | change-the-result-path-due-conflict-with-anohter-module-1928968-1.patch | 739 bytes | issa.haddadin |
Comments
Comment #1
issa.haddadin CreditAttribution: issa.haddadin commentedHere is a patch attached, i just changed the path.
Comment #2
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedHi 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).
Comment #3
djdevinThis 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.