You are here

function quiz_stats_get_basic_stats in Quiz 8.4

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

Returns statistics for all available quizzes

Parameters

$uid: User id

Return value

HTML table

2 calls to quiz_stats_get_basic_stats()
QuizStatsController::quizStatistics in modules/quiz_stats/lib/Drupal/quiz_stats/Controller/QuizStatsController.php
QuizStatsController::quizUserStatistics in modules/quiz_stats/lib/Drupal/quiz_stats/Controller/QuizStatsController.php

File

modules/quiz_stats/quiz_stats.admin.inc, line 55
Administration file for Quiz stats Module

Code

function quiz_stats_get_basic_stats($node = NULL, $uid = 0) {
  $results = _quiz_get_quizzes($uid);
  return empty($results) ? t('No Statistics found.') : theme('quiz_stats_get_basic_stats', array(
    'results' => $results,
  ));
}