Skip to content
Snippets Groups Projects
Commit 7d53d3c9 authored by falcon's avatar falcon
Browse files

#652208 reported by biocomp.pat: Comment trouble...

parent cef051b4
No related branches found
No related tags found
No related merge requests found
......@@ -36,17 +36,6 @@ function quiz_question_autoload_info() {
* Implementation of hook_menu().
*/
function quiz_question_menu() {
// Menu item for seeing references to a question.
$items['node/%quiz_question_type_access/references'] = array(
'title' => 'References',
'page callback' => 'quiz_question_references',
'page arguments' => array(1),
// FIXME give this a sensible callback
'access callback' => TRUE,
'type' => MENU_LOCAL_TASK,
'file' => 'quiz_question.pages.inc',
);
$items['quiz_question/%/%/revision_actions'] = array(
'title' => 'Revision actions',
......
......@@ -338,6 +338,8 @@ function quiz_install() {
$temp_array = variable_get('theme_settings', array());
$temp_array['toggle_node_info_quiz'] = 0;
variable_set('theme_settings', $temp_array);
// Default the comment settings to disabled.
$temp_array = variable_set('comment_quiz', '0');
drupal_set_message(t('Quiz module has been enabled. To !create_a_quiz go to Content Management -> Create Content -> Quiz.', array('!create_a_quiz' => l(t('create a quiz'), 'node/add/quiz'))));
}
......@@ -720,7 +722,8 @@ function quiz_uninstall() {
'quiz_max_result_options',
'quiz_remove_partial_quiz_record',
'quiz_show_allowed_times',
'quiz_autotitle_length'
'quiz_autotitle_length',
'comment_quiz'
);
foreach ($var as $v) {
variable_del($v);
......
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