function _quiz_get_node_defaults in Quiz 7
Same name and namespace in other branches
- 8.6 quiz.module \_quiz_get_node_defaults()
- 8.4 quiz.module \_quiz_get_node_defaults()
- 8.5 quiz.module \_quiz_get_node_defaults()
- 6.6 quiz.module \_quiz_get_node_defaults()
- 6.3 quiz.module \_quiz_get_node_defaults()
- 6.4 quiz.module \_quiz_get_node_defaults()
- 6.5 quiz.module \_quiz_get_node_defaults()
- 7.6 quiz.module \_quiz_get_node_defaults()
- 7.4 quiz.module \_quiz_get_node_defaults()
- 7.5 quiz.module \_quiz_get_node_defaults()
Returns default values for all quiz settings.
Return value
Array of default values.
4 calls to _quiz_get_node_defaults()
- quiz_admin_node_form in ./
quiz.admin.inc - Renders the quiz node form for the admin pages
- quiz_load in ./
quiz.module - Implements hook_load().
- quiz_make_new in ./
quiz.module - Makes, saves and returns a new quiz node.
- quiz_node_prepare in ./
quiz.module - Implementation of hook_node_prepare().
File
- ./
quiz.module, line 823 - Quiz Module
Code
function _quiz_get_node_defaults() {
return array(
'aid' => NULL,
'number_of_random_questions' => 0,
'max_score_for_random' => 1,
'pass_rate' => 75,
'summary_pass' => '',
'summary_pass_format' => '',
'summary_default' => '',
'summary_default_format' => '',
'randomization' => 0,
'backwards_navigation' => 1,
'repeat_until_correct' => 0,
'feedback_time' => 0,
'display_feedback' => 1,
'quiz_open' => 0,
'quiz_close' => 0,
'takes' => 0,
'show_attempt_stats' => 1,
'keep_results' => 2,
'time_limit' => 0,
'quiz_always' => 1,
'tid' => 0,
'has_userpoints' => 0,
'allow_skipping' => 1,
'allow_resume' => 1,
'allow_jumping' => 0,
);
}