You are here

function quiz_stats_theme in Quiz 6.x

Same name and namespace in other branches
  1. 8.6 modules/quiz_stats/quiz_stats.module \quiz_stats_theme()
  2. 8.4 modules/quiz_stats/quiz_stats.module \quiz_stats_theme()
  3. 8.5 modules/quiz_stats/quiz_stats.module \quiz_stats_theme()
  4. 6.4 includes/quiz_stats/quiz_stats.module \quiz_stats_theme()
  5. 7.6 modules/quiz_stats/quiz_stats.module \quiz_stats_theme()
  6. 7 includes/quiz_stats/quiz_stats.module \quiz_stats_theme()
  7. 7.4 includes/quiz_stats/quiz_stats.module \quiz_stats_theme()
  8. 7.5 modules/quiz_stats/quiz_stats.module \quiz_stats_theme()

Implements hook_theme().

File

modules/quiz_stats/quiz_stats.module, line 91
Quiz stats.

Code

function quiz_stats_theme() {
  $path = drupal_get_path('module', 'quiz_stats') . '/theme';
  return [
    'quiz_stats_get_basic_stats' => [
      'variables' => [
        'results' => NULL,
      ],
      'file' => 'quiz_stats.admin.inc',
    ],
    'date_vs_takeup_count' => [
      'variables' => [
        'takeup' => NULL,
      ],
      'file' => 'quiz_stats.admin.inc',
    ],
    'get_quiz_status_chart' => [
      'variables' => [
        'quiz' => NULL,
      ],
      'file' => 'quiz_stats.admin.inc',
    ],
    'quiz_top_scorers' => [
      'variables' => [
        'scorer' => NULL,
      ],
      'file' => 'quiz_stats.admin.inc',
    ],
    'quiz_grade_range' => [
      'variables' => [
        'range' => NULL,
      ],
      'file' => 'quiz_stats.admin.inc',
    ],
    'quiz_stats_revision_selector' => [
      'variables' => [
        'content' => NULL,
      ],
      'path' => $path,
      'template' => 'quiz_stats_revision_selector',
    ],
    'quiz_stats_charts' => [
      'variables' => [
        'charts' => NULL,
      ],
      'path' => $path,
      'template' => 'quiz_stats_charts',
    ],
  ];
}