You are here

function _quiz_get_node_defaults in Quiz 6.4

Same name and namespace in other branches
  1. 8.6 quiz.module \_quiz_get_node_defaults()
  2. 8.4 quiz.module \_quiz_get_node_defaults()
  3. 8.5 quiz.module \_quiz_get_node_defaults()
  4. 6.6 quiz.module \_quiz_get_node_defaults()
  5. 6.3 quiz.module \_quiz_get_node_defaults()
  6. 6.5 quiz.module \_quiz_get_node_defaults()
  7. 7.6 quiz.module \_quiz_get_node_defaults()
  8. 7 quiz.module \_quiz_get_node_defaults()
  9. 7.4 quiz.module \_quiz_get_node_defaults()
  10. 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
Implementation of hook_load().
quiz_make_new in ./quiz.module
Makes, saves and returns a new quiz node.
quiz_nodeapi in ./quiz.module
Implementation of hook_nodeapi()

File

./quiz.module, line 784
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_default' => '',
    '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,
  );
}