You are here

function quiz_theme in Quiz 7.5

Same name and namespace in other branches
  1. 8.6 quiz.module \quiz_theme()
  2. 8.4 quiz.module \quiz_theme()
  3. 8.5 quiz.module \quiz_theme()
  4. 6.6 quiz.module \quiz_theme()
  5. 6.2 quiz.module \quiz_theme()
  6. 6.3 quiz.module \quiz_theme()
  7. 6.4 quiz.module \quiz_theme()
  8. 6.5 quiz.module \quiz_theme()
  9. 7.6 quiz.module \quiz_theme()
  10. 7 quiz.module \quiz_theme()
  11. 7.4 quiz.module \quiz_theme()
  12. 6.x quiz.module \quiz_theme()

Implements hook_theme().

File

./quiz.module, line 567
quiz.module Main file for the Quiz module.

Code

function quiz_theme($existing, $type, $theme, $path) {
  return array(
    'quiz_view_stats' => array(
      'variables' => array(
        'node' => NULL,
      ),
      'file' => 'quiz.theme.inc',
    ),
    'quiz_categorized_form' => array(
      'render element' => 'form',
      'file' => 'quiz.theme.inc',
    ),
    'quiz_result' => array(
      'variables' => array(
        'quiz' => NULL,
        'questions' => NULL,
        'score' => NULL,
        'summary' => NULL,
        'result_id' => NULL,
      ),
      'file' => 'quiz.theme.inc',
    ),
    'quiz_progress' => array(
      'variables' => array(
        'question_number' => NULL,
        'num_questions' => NULL,
        'allow_jumping' => NULL,
        'time_limit' => NULL,
      ),
      'file' => 'quiz.theme.inc',
    ),
    'question_selection_table' => array(
      'file' => 'quiz.theme.inc',
      'render element' => 'form',
    ),
    'quiz_answer_result' => array(
      'file' => 'quiz.theme.inc',
      'variables' => array(),
    ),
    'quiz_report_form' => array(
      'render element' => 'form',
      'path' => $path . '/theme',
      'template' => 'quiz-report-form',
    ),
    'quiz_question_score' => array(
      'variables' => array(
        'score' => NULL,
        'max_score' => NULL,
      ),
      'path' => $path . '/theme',
      'template' => 'quiz-question-score',
    ),
    'quiz_pager' => array(
      'variables' => array(
        'total' => 0,
        'current' => 0,
        'siblings' => 0,
      ),
    ),
    'quiz_questions_page' => array(
      'file' => 'quiz.theme.inc',
      'render element' => 'form',
    ),
  );
}